Now that remconffs is doing real caching, cache for less time invirt-remote-server/0.1.1
authorEvan Broder <broder@mit.edu>
Mon, 17 Nov 2008 18:20:05 +0000 (13:20 -0500)
committerEvan Broder <broder@mit.edu>
Mon, 17 Nov 2008 18:20:05 +0000 (13:20 -0500)
svn path=/trunk/packages/invirt-remote-server/; revision=1701

debian/changelog
files/usr/sbin/invirt-remconffs

index ef2016a..6864c99 100644 (file)
@@ -1,3 +1,9 @@
+invirt-remote-server (0.1.1) unstable; urgency=low
+
+  * Now that we're doing real caching, cache for less time
+
+ -- Evan Broder <broder@mit.edu>  Mon, 17 Nov 2008 13:18:23 -0500
+
 invirt-remote-server (0.1.0) unstable; urgency=low
 
   * Add real caching to remconffs
index d023749..6ad3ba7 100755 (executable)
@@ -43,7 +43,7 @@ class RemConfFS(routefs.RouteFS):
                return m
        
        def recache(self):
-               if time() - self.lasttime > 15:
+               if time() - self.lasttime > 5:
                        self.lasttime = time()
                        database.clear_cache()
                        self.machines = dict((machine.name, machine) for machine in database.session.query(database.Machine).all())