[prev in list] [next in list] [prev in thread] [next in thread]
List: lon-capa-cvs
Subject: [LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm
From: raeburn <raeburn () source ! lon-capa ! org>
Date: 2018-03-30 21:30:00
Message-ID: cvsraeburn1522445400 () cvsserver
[Download RAW message or body]
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 *
_______________________________________________
LON-CAPA-cvs mailing list
LON-CAPA-cvs@mail.lon-capa.org
http://mail.lon-capa.org/mailman/listinfo/lon-capa-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic