--- loncom/interface/domainprefs.pm 2013/09/29 06:53:35 1.210 +++ loncom/interface/domainprefs.pm 2013/10/06 20:33:45 1.211 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler to set domain-wide configuration settings # -# $Id: domainprefs.pm,v 1.210 2013/09/29 06:53:35 raeburn Exp $ +# $Id: domainprefs.pm,v 1.211 2013/10/06 20:33:45 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -8412,7 +8412,8 @@ sub modify_usersessions { foreach my $lonhost (sort(keys(%{$changes{$prefix}}))) { $resulttext .= '
  • '.$lonhost.' '; my $lonhostdom = &Apache::lonnet::host_domain($lonhost); - &Apache::lonnet::remote_devalidate_cache($lonhost,'spares',$lonhostdom); + my $cachekey = &escape('spares').':'.&escape($lonhostdom); + &Apache::lonnet::remote_devalidate_cache($lonhost,[$cachekey]); if (ref($changes{$prefix}{$lonhost}) eq 'HASH') { foreach my $type (@{$types{$prefix}}) { if ($changes{$prefix}{$lonhost}{$type}) { @@ -8599,7 +8600,8 @@ sub modify_loadbalancing { if (ref($changes{'delete'}) eq 'ARRAY') { foreach my $balancer (sort(@{$changes{'delete'}})) { $resulttext .= '
  • '.&mt('Load Balancing discontinued for: [_1]',$balancer).'
  • '; - &Apache::lonnet::remote_devalidate_cache($balancer,'loadbalancing',$dom); + my $cachekey = &escape('loadbalancing').':'.&escape($dom); + &Apache::lonnet::remote_devalidate_cache($balancer,[$cachekey]); } } if (ref($changes{'add'}) eq 'ARRAY') { @@ -8655,7 +8657,8 @@ sub modify_loadbalancing { } } } - &Apache::lonnet::remote_devalidate_cache($balancer,'loadbalancing',$dom); + my $cachekey = &scape('loadbalancing').':'.&escape($dom); + &Apache::lonnet::remote_devalidate_cache($balancer,[$cachekey]); } } if ($resulttext ne '') { @@ -9386,7 +9389,8 @@ sub devalidate_remote_domconfs { if (keys(%servers) > 1) { foreach my $server (keys(%servers)) { next if ($thismachine{$server}); - &Apache::lonnet::remote_devalidate_cache($server,'domainconfig',$dom); + my $cachekey = &escape('domainconfig').':'.&escape($dom); + &Apache::lonnet::remote_devalidate_cache($server,[$cachekey]); } } return;