Now that consolefs is really caching, cache for a shorter period of time
[invirt/packages/invirt-console.git] / files / usr / bin / invirt-consolefs
index e092c21..b6e3844 100755 (executable)
@@ -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())