svn path=/trunk/packages/invirt-console-server/; revision=1700
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 <broder@mit.edu> Mon, 17 Nov 2008 13:16:09 -0500
+ -- Evan Broder <broder@mit.edu> Mon, 17 Nov 2008 13:16:37 -0500
invirt-console-server (0.0.13) unstable; urgency=low
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())