summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/utils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/utils.py b/main/utils.py
index 40010b86..81093e2a 100644
--- a/main/utils.py
+++ b/main/utils.py
@@ -23,6 +23,7 @@ def cache_function(length):
raw = [func.__name__, func.__module__, args, kwargs]
pickled = pickle.dumps(raw, protocol=pickle.HIGHEST_PROTOCOL)
key = md5_constructor(pickled).hexdigest()
+ key = 'cache_function.' + func.__name__ + '.' + key
value = cache.get(key)
if value is not None:
return value