X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=monitor%2Fdatabase%2Fdbpickle.py;h=074ff68e2db943c222db0f5463e7e0d5ed0210a7;hb=d8c4f261680cbc9cb2708cf12d97202716120dc7;hp=e795658acf59c888e02efa9c05d13cc07ffecd37;hpb=6f2351e4b44590221425fa9b4bfa77c92db49b6a;p=monitor.git diff --git a/monitor/database/dbpickle.py b/monitor/database/dbpickle.py index e795658..074ff68 100644 --- 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. """ + 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: