version 1.210, 2013/09/29 06:53:35
|
version 1.211, 2013/10/06 20:33:45
|
Line 8412 sub modify_usersessions {
|
Line 8412 sub modify_usersessions {
|
foreach my $lonhost (sort(keys(%{$changes{$prefix}}))) { |
foreach my $lonhost (sort(keys(%{$changes{$prefix}}))) { |
$resulttext .= '<li><b>'.$lonhost.'</b> '; |
$resulttext .= '<li><b>'.$lonhost.'</b> '; |
my $lonhostdom = &Apache::lonnet::host_domain($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') { |
if (ref($changes{$prefix}{$lonhost}) eq 'HASH') { |
foreach my $type (@{$types{$prefix}}) { |
foreach my $type (@{$types{$prefix}}) { |
if ($changes{$prefix}{$lonhost}{$type}) { |
if ($changes{$prefix}{$lonhost}{$type}) { |
Line 8599 sub modify_loadbalancing {
|
Line 8600 sub modify_loadbalancing {
|
if (ref($changes{'delete'}) eq 'ARRAY') { |
if (ref($changes{'delete'}) eq 'ARRAY') { |
foreach my $balancer (sort(@{$changes{'delete'}})) { |
foreach my $balancer (sort(@{$changes{'delete'}})) { |
$resulttext .= '<li>'.&mt('Load Balancing discontinued for: [_1]',$balancer).'</li>'; |
$resulttext .= '<li>'.&mt('Load Balancing discontinued for: [_1]',$balancer).'</li>'; |
&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') { |
if (ref($changes{'add'}) eq 'ARRAY') { |
Line 8655 sub modify_loadbalancing {
|
Line 8657 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 '') { |
if ($resulttext ne '') { |
Line 9386 sub devalidate_remote_domconfs {
|
Line 9389 sub devalidate_remote_domconfs {
|
if (keys(%servers) > 1) { |
if (keys(%servers) > 1) { |
foreach my $server (keys(%servers)) { |
foreach my $server (keys(%servers)) { |
next if ($thismachine{$server}); |
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; |
return; |