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())