projects
/
invirt/packages/invirt-console.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Now that consolefs is really caching, cache for a shorter period of time
[invirt/packages/invirt-console.git]
/
files
/
usr
/
bin
/
invirt-consolefs
diff --git
a/files/usr/bin/invirt-consolefs
b/files/usr/bin/invirt-consolefs
index
e092c21
..
b6e3844
100755
(executable)
--- 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
"""
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())
self.lasttime = time()
database.clear_cache()
self.machines = dict((machine.name, machine) for machine in database.session.query(database.Machine).all())