summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-07-10 16:23:33 -0500
committerDan McGee <dan@archlinux.org>2010-07-10 16:23:36 -0500
commit6b4c8e63b3a13bae23330aef33f69352fa02dff6 (patch)
tree1acb7a6ece82b3063ef42a201e6b65b4f429321c
parent7ca91098fac9d313bdac0946453705ebc834d837 (diff)
Make the cache_function key a bit more descriptive
Signed-off-by: Dan McGee <dan@archlinux.org>
-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