[LON-CAPA-cvs] cvs: loncom / lond
albertel
lon-capa-cvs@mail.lon-capa.org
Thu, 06 Oct 2005 20:48:34 -0000
albertel Thu Oct 6 16:48:34 2005 EDT
Modified files:
/loncom lond
Log:
- when a resource is updated we make sure the local cache of metadata information about that file is invalidated
Index: loncom/lond
diff -u loncom/lond:1.297 loncom/lond:1.298
--- loncom/lond:1.297 Thu Sep 8 13:14:41 2005
+++ loncom/lond Thu Oct 6 16:48:33 2005
@@ -2,7 +2,7 @@
# The LearningOnline Network
# lond "LON Daemon" Server (port "LOND" 5663)
#
-# $Id: lond,v 1.297 2005/09/08 17:14:41 raeburn Exp $
+# $Id: lond,v 1.298 2005/10/06 20:48:33 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -59,7 +59,7 @@
my $status='';
my $lastlog='';
-my $VERSION='$Revision: 1.297 $'; #' stupid emacs
+my $VERSION='$Revision: 1.298 $'; #' stupid emacs
my $remoteVERSION;
my $currenthostid="default";
my $currentdomainid;
@@ -1973,6 +1973,13 @@
alarm(0);
}
rename($transname,$fname);
+ use Cache::Memcached;
+ my $memcache=
+ new Cache::Memcached({'servers'=>['127.0.0.1:11211']});
+ my $url=$fname;
+ $url=~s-^/home/httpd/html--;
+ my $id=&escape('meta:'.$url);
+ $memcache->delete($id);
}
}
&Reply( $client, "ok\n", $userinput);