[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm
raeburn
raeburn at source.lon-capa.org
Fri Mar 30 17:30:00 EDT 2018
raeburn Fri Mar 30 21:30:00 2018 EDT
Modified files:
/loncom/lonnet/perl lonnet.pm
Log:
- No &do_cache_new() when &metadata was called with $liburi defined.
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.1370 loncom/lonnet/perl/lonnet.pm:1.1371
--- loncom/lonnet/perl/lonnet.pm:1.1370 Fri Mar 30 18:07:47 2018
+++ loncom/lonnet/perl/lonnet.pm Fri Mar 30 21:30:00 2018
@@ -1,7 +1,7 @@
# The LearningOnline Network
# TCP networking package
#
-# $Id: lonnet.pm,v 1.1370 2018/03/30 18:07:47 raeburn Exp $
+# $Id: lonnet.pm,v 1.1371 2018/03/30 21:30:00 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -12128,7 +12128,9 @@
$metaentry{':keys'} = join(',',keys(%metathesekeys));
&metadata_generate_part0(\%metathesekeys,\%metaentry,$uri);
$metaentry{':allpossiblekeys'}=join(',',keys(%metathesekeys));
- &do_cache_new('meta',$uri,\%metaentry,$cachetime);
+ unless ($liburi) {
+ &do_cache_new('meta',$uri,\%metaentry,$cachetime);
+ }
# this is the end of "was not already recently cached
}
return $metaentry{':'.$what};
@@ -14851,7 +14853,9 @@
the toolsymb is only used where the uri is for an external tool (for which
the uri as well as the symb are guaranteed to be unique).
-this function automatically caches all requests
+this function automatically caches all requests except any made recursively
+to retrieve a list of metadata keys for an imported library file ($liburi is
+defined).
=item *
More information about the LON-CAPA-cvs
mailing list