summaryrefslogtreecommitdiff
path: root/lib/utils/cache.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/utils/cache.py')
-rw-r--r--lib/utils/cache.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/utils/cache.py b/lib/utils/cache.py
index 1ede8ce1..543aaf15 100644
--- a/lib/utils/cache.py
+++ b/lib/utils/cache.py
@@ -39,6 +39,10 @@ def get_stitch_plan_cache():
return __stitch_plan_cache
+def is_cache_disabled():
+ return not global_settings['cache_size']
+
+
class CacheKeyGenerator(object):
"""Generate cache keys given arbitrary data.