--- loncom/lonnet/perl/lonnet.pm 2006/07/19 19:44:52 1.762 +++ loncom/lonnet/perl/lonnet.pm 2006/07/20 03:00:45 1.764 @@ -1,7 +1,7 @@ # The LearningOnline Network # TCP networking package # -# $Id: lonnet.pm,v 1.762 2006/07/19 19:44:52 raeburn Exp $ +# $Id: lonnet.pm,v 1.764 2006/07/20 03:00:45 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -5155,6 +5155,7 @@ sub devalidatecourseresdata { &devalidate_cache_new('courseres',$hashid); } + # --------------------------------------------------- Course Resourcedata Query sub get_courseresdata { @@ -5876,6 +5877,17 @@ sub metadata_generate_part0 { } } +# ------------------------------------------------------ Devalidate title cache + +sub devalidate_title_cache { + my ($url)=@_; + if (!$env{'request.course.id'}) { return; } + my $symb=&symbread($url); + if (!$symb) { return; } + my $key=$env{'request.course.id'}."\0".$symb; + &devalidate_cache_new('title',$key); +} + # ------------------------------------------------- Get the title of a resource sub gettitle {