[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Fri, 15 Apr 2005 20:46:05 -0000
albertel Fri Apr 15 16:46:05 2005 EDT
Modified files:
/loncom/lonnet/perl lonnet.pm
Log:
- forgot to set a cache deadline for user parm data
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.622 loncom/lonnet/perl/lonnet.pm:1.623
--- loncom/lonnet/perl/lonnet.pm:1.622 Mon Apr 11 20:20:00 2005
+++ loncom/lonnet/perl/lonnet.pm Fri Apr 15 16:46:04 2005
@@ -1,7 +1,7 @@
# The LearningOnline Network
# TCP networking package
#
-# $Id: lonnet.pm,v 1.622 2005/04/12 00:20:00 raeburn Exp $
+# $Id: lonnet.pm,v 1.623 2005/04/15 20:46:04 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -875,6 +875,9 @@
if (!defined($setvalue)) {
$setvalue='__undef__';
}
+ if (!defined($time) ) {
+ $time=600;
+ }
if ($debug) { &Apache::lonnet::logthis("Setting $id to $value"); }
$memcache->set($id,$setvalue,$time);
# need to make a copy of $value
@@ -4292,7 +4295,7 @@
if (!defined($cached)) {
my %resourcedata=&dump('resourcedata',$udom,$uname);
$result=\%resourcedata;
- &do_cache_new('userres',$hashid,$result);
+ &do_cache_new('userres',$hashid,$result,600);
}
my ($tmp)=keys(%$result);
if (($tmp!~/^error\:/) && ($tmp!~/^con_lost/)) {
@@ -4620,7 +4623,7 @@
$metaentry{':keys'}=join(',',keys %metathesekeys);
&metadata_generate_part0(\%metathesekeys,\%metaentry,$uri);
$metaentry{':allpossiblekeys'}=join(',',keys %metathesekeys);
- &do_cache_new('meta',$uri,\%metaentry);
+ &do_cache_new('meta',$uri,\%metaentry,60*60*24);
# this is the end of "was not already recently cached
}
return $metaentry{':'.$what};