From: Evan Broder Date: Mon, 17 Nov 2008 18:20:04 +0000 (-0500) Subject: Now that consolefs is really caching, cache for a shorter period of time X-Git-Tag: invirt-console-server/0.1.0^0 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-console.git/commitdiff_plain/acd5117037b2ceeb22a4a9ec1dceb550941de5a0?ds=sidebyside Now that consolefs is really caching, cache for a shorter period of time svn path=/trunk/packages/invirt-console-server/; revision=1700 --- diff --git a/debian/changelog b/debian/changelog index 27e67bf..13f29f2 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,8 +1,9 @@ invirt-console-server (0.1.0) unstable; urgency=low * Add real caching to consolefs + * Now that we're really caching, cache for a shorter period of time - -- Evan Broder Mon, 17 Nov 2008 13:16:09 -0500 + -- Evan Broder Mon, 17 Nov 2008 13:16:37 -0500 invirt-console-server (0.0.13) unstable; urgency=low diff --git a/files/usr/bin/invirt-consolefs b/files/usr/bin/invirt-consolefs index e092c21..b6e3844 100755 --- a/files/usr/bin/invirt-consolefs +++ b/files/usr/bin/invirt-consolefs @@ -45,7 +45,7 @@ class ConsoleFS(routefs.RouteFS): def recache(self): """Refresh the local cache of VMs if the cache is more than 15 minutes old """ - 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())