git://git.onelab.eu
/
monitor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
unify the model by which probes are made to collect information about nodes or
[monitor.git]
/
monitor
/
database
/
dbpickle.py
diff --git
a/monitor/database/dbpickle.py
b/monitor/database/dbpickle.py
index
e795658
..
074ff68
100644
(file)
--- a/
monitor/database/dbpickle.py
+++ b/
monitor/database/dbpickle.py
@@
-27,6
+27,10
@@
def cachedRecently(name, length=int(config.cachetime), type=None):
return true or false based on whether the modified time of the cached
file is within 'length' minutes.
"""
return true or false based on whether the modified time of the cached
file is within 'length' minutes.
"""
+ if hasattr(config, 'cachecalls') and not config.cachecalls:
+ # don't use cached calls if cachecalls is false
+ return False
+
try:
t = lastModified(name, type)
except:
try:
t = lastModified(name, type)
except: