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

raeburn raeburn at source.lon-capa.org
Mon May 28 08:28:14 EDT 2012


raeburn		Mon May 28 12:28:14 2012 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - Ignore cached first accesses when rendering page after "Show Resource" button 
    was clicked to start timer.
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.1173 loncom/lonnet/perl/lonnet.pm:1.1174
--- loncom/lonnet/perl/lonnet.pm:1.1173	Mon May 28 12:23:03 2012
+++ loncom/lonnet/perl/lonnet.pm	Mon May 28 12:28:14 2012
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.1173 2012/05/28 12:23:03 foxr Exp $
+# $Id: lonnet.pm,v 1.1174 2012/05/28 12:28:14 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -3961,7 +3961,7 @@
 sub load_all_first_access {
     my ($uname,$udom)=@_;
     if (($cachedkey eq $uname.':'.$udom) &&
-        (abs($cachedtime-time)<5)) {
+        (abs($cachedtime-time)<5) && (!$env{'form.markaccess'})) {
         return;
     }
     $cachedtime=time;




More information about the LON-CAPA-cvs mailing list