[LON-CAPA-cvs] cvs: loncom /interface domainprefs.pm

raeburn raeburn at source.lon-capa.org
Sun Jan 5 16:24:13 EST 2014


raeburn		Sun Jan  5 21:24:13 2014 EDT

  Modified files:              
    /loncom/interface	domainprefs.pm 
  Log:
  - Efficiency: skip call to &devalidate_remote_domconfs() if the $result
    hashref is empty.
  
  
Index: loncom/interface/domainprefs.pm
diff -u loncom/interface/domainprefs.pm:1.221 loncom/interface/domainprefs.pm:1.222
--- loncom/interface/domainprefs.pm:1.221	Wed Jan  1 17:41:46 2014
+++ loncom/interface/domainprefs.pm	Sun Jan  5 21:24:12 2014
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to set domain-wide configuration settings
 #
-# $Id: domainprefs.pm,v 1.221 2014/01/01 17:41:46 raeburn Exp $
+# $Id: domainprefs.pm,v 1.222 2014/01/05 21:24:12 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -420,7 +420,7 @@
     if ($phase eq 'process') {
         my $result = &Apache::lonconfigsettings::make_changes($r,$dom,$phase,$context,\@prefs_order,
                                                               \%prefs,\%domconfig,$confname,\@roles);
-        if (ref($result) eq 'HASH') {
+        if ((ref($result) eq 'HASH') && (keys(%{$result}))) { 
             $r->rflush();
             &devalidate_remote_domconfs($dom,$result);
         }




More information about the LON-CAPA-cvs mailing list