[LON-CAPA-cvs] cvs: loncom(version_2_11_X) / lond
raeburn
raeburn at source.lon-capa.org
Wed Oct 16 20:36:01 EDT 2013
raeburn Thu Oct 17 00:36:01 2013 EDT
Modified files: (Branch: version_2_11_X)
/loncom lond
Log:
- For 2.11
- Backport 1.503
Index: loncom/lond
diff -u loncom/lond:1.489.2.8 loncom/lond:1.489.2.9
--- loncom/lond:1.489.2.8 Sat Aug 10 14:20:52 2013
+++ loncom/lond Thu Oct 17 00:36:01 2013
@@ -2,7 +2,7 @@
# The LearningOnline Network
# lond "LON Daemon" Server (port "LOND" 5663)
#
-# $Id: lond,v 1.489.2.8 2013/08/10 14:20:52 raeburn Exp $
+# $Id: lond,v 1.489.2.9 2013/10/17 00:36:01 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -61,7 +61,7 @@
my $status='';
my $lastlog='';
-my $VERSION='$Revision: 1.489.2.8 $'; #' stupid emacs
+my $VERSION='$Revision: 1.489.2.9 $'; #' stupid emacs
my $remoteVERSION;
my $currenthostid="default";
my $currentdomainid;
@@ -1685,8 +1685,14 @@
sub server_devalidatecache_handler {
my ($cmd,$tail,$client) = @_;
my $userinput = "$cmd:$tail";
- my ($name,$id) = map { &unescape($_); } split(/:/,$tail);
- &Apache::lonnet::devalidate_cache_new($name,$id);
+ my $items = &unescape($tail);
+ my @cached = split(/\&/,$items);
+ foreach my $key (@cached) {
+ if ($key =~ /:/) {
+ my ($name,$id) = map { &unescape($_); } split(/:/,$key);
+ &Apache::lonnet::devalidate_cache_new($name,$id);
+ }
+ }
my $result = 'ok';
&Reply($client,\$result,$userinput);
return 1;
More information about the LON-CAPA-cvs
mailing list