[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm

raeburn raeburn at source.lon-capa.org
Fri Dec 29 18:51:50 EST 2017


raeburn		Fri Dec 29 23:51:50 2017 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - Updated shortlived cached firstaccess immediately after setting the value. 
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.1364 loncom/lonnet/perl/lonnet.pm:1.1365
--- loncom/lonnet/perl/lonnet.pm:1.1364	Fri Dec 22 17:58:16 2017
+++ loncom/lonnet/perl/lonnet.pm	Fri Dec 29 23:51:50 2017
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.1364 2017/12/22 17:58:16 raeburn Exp $
+# $Id: lonnet.pm,v 1.1365 2017/12/29 23:51:50 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -5229,6 +5229,9 @@
                         'course.'.$courseid.'.timerinterval.'.$res => $interval,
                      }
                   );
+            if (($cachedtime) && (abs($start-$cachedtime) < 5)) {
+                $cachedtimes{"$courseid\0$res"} = $start;
+            }
         }
         return $putres;
     }




More information about the LON-CAPA-cvs mailing list