unify the model by which probes are made to collect information about nodes or
[monitor.git] / monitor / database / dbpickle.py
index e795658..074ff68 100644 (file)
@@ -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: