[LON-CAPA-cvs] cvs: loncom /interface londropadd.pm lonmanagekeys.pm lonparmset.pm

albertel lon-capa-cvs@mail.lon-capa.org
Wed, 26 Apr 2006 14:52:24 -0000


albertel		Wed Apr 26 10:52:24 2006 EDT

  Modified files:              
    /loncom/interface	lonparmset.pm londropadd.pm lonmanagekeys.pm 
  Log:
  - update calls to coursedescription where they want the cached data updated
  
  
Index: loncom/interface/lonparmset.pm
diff -u loncom/interface/lonparmset.pm:1.295 loncom/interface/lonparmset.pm:1.296
--- loncom/interface/lonparmset.pm:1.295	Sat Apr 22 11:39:22 2006
+++ loncom/interface/lonparmset.pm	Wed Apr 26 10:52:22 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to set parameters for assessments
 #
-# $Id: lonparmset.pm,v 1.295 2006/04/22 15:39:22 albertel Exp $
+# $Id: lonparmset.pm,v 1.296 2006/04/26 14:52:22 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2094,7 +2094,8 @@
     }
 # ------------------------- Re-init course environment entries for this session
 
-    &Apache::lonnet::coursedescription($env{'request.course.id'});
+    &Apache::lonnet::coursedescription($env{'request.course.id'}
+				       {'freshen_cache' => 1});
 
 # -------------------------------------------------------- Get parameters again
 
@@ -3128,7 +3129,8 @@
             }
         }
     }
-    &Apache::lonnet::coursedescription($env{'request.course.id'});
+    &Apache::lonnet::coursedescription($env{'request.course.id'},
+				       {'freshen_cache' => 1});
     my %metadata_fields = &Apache::lonmeta::fieldnames('portfolio');
     foreach my $field (sort(keys(%metadata_fields))) {
         &Apache::lonnet::logthis ($field);
Index: loncom/interface/londropadd.pm
diff -u loncom/interface/londropadd.pm:1.139 loncom/interface/londropadd.pm:1.140
--- loncom/interface/londropadd.pm:1.139	Fri Apr 21 21:06:48 2006
+++ loncom/interface/londropadd.pm	Wed Apr 26 10:52:22 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to drop and add students in courses 
 #
-# $Id: londropadd.pm,v 1.139 2006/04/22 01:06:48 albertel Exp $
+# $Id: londropadd.pm,v 1.140 2006/04/26 14:52:22 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -905,7 +905,8 @@
         $result .= "Set default start and end dates for course<br />";
         #
         # Refresh the course environment
-        &Apache::lonnet::coursedescription($env{'request.course.id'});
+        &Apache::lonnet::coursedescription($env{'request.course.id'},
+					   {'freshen_cache' => 1});
     } else {
         $result .= &mt('Unable to set default dates for course').":".$put_result.
             '<br />';
Index: loncom/interface/lonmanagekeys.pm
diff -u loncom/interface/lonmanagekeys.pm:1.18 loncom/interface/lonmanagekeys.pm:1.19
--- loncom/interface/lonmanagekeys.pm:1.18	Thu Mar 16 17:42:58 2006
+++ loncom/interface/lonmanagekeys.pm	Wed Apr 26 10:52:22 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to manage course access keys 
 #
-# $Id: lonmanagekeys.pm,v 1.18 2006/03/16 22:42:58 albertel Exp $
+# $Id: lonmanagekeys.pm,v 1.19 2006/04/26 14:52:22 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -223,7 +223,8 @@
 # --- Actions
 	    if ($env{'form.toggle'}) {
 		$r->print(&togglekeyaccess(%cenv).'<br />');
-		%cenv=&Apache::lonnet::coursedescription($env{'form.cid'});
+		%cenv=&Apache::lonnet::coursedescription($env{'form.cid'},
+							 {'freshen_cache'=> 1});
 	    }
             my $batchnumber='';
 	    if ($env{'form.genkeys'}) {