[LON-CAPA-cvs] cvs: loncom / lond

raeburn raeburn@source.lon-capa.org
Fri, 12 Nov 2010 15:38:53 -0000


raeburn		Fri Nov 12 15:38:53 2010 EDT

  Modified files:              
    /loncom	lond 
  Log:
  - Skip caching, if already cached.
  
  
Index: loncom/lond
diff -u loncom/lond:1.463 loncom/lond:1.464
--- loncom/lond:1.463	Tue Nov  2 10:51:46 2010
+++ loncom/lond	Fri Nov 12 15:38:53 2010
@@ -2,7 +2,7 @@
 # The LearningOnline Network
 # lond "LON Daemon" Server (port "LOND" 5663)
 #
-# $Id: lond,v 1.463 2010/11/02 10:51:46 foxr Exp $
+# $Id: lond,v 1.464 2010/11/12 15:38:53 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -58,7 +58,7 @@
 my $status='';
 my $lastlog='';
 
-my $VERSION='$Revision: 1.463 $'; #' stupid emacs
+my $VERSION='$Revision: 1.464 $'; #' stupid emacs
 my $remoteVERSION;
 my $currenthostid="default";
 my $currentdomainid;
@@ -7405,7 +7405,10 @@
             return;
         }
         foreach my $hashid (keys(%recent)) {
-            &Apache::lonnet::do_cache_new('courseinfo',$hashid,$courseinfo{$hashid},600);
+            my ($result,$cached)=&is_cached_new('courseinfo',$hashid);
+            unless ($cached) {
+                &Apache::lonnet::do_cache_new('courseinfo',$hashid,$courseinfo{$hashid},600);
+            }
         }
         foreach my $hashid (keys(%{$homecourses})) {
             next if ($recent{$hashid});