We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69fbb23 commit d832175Copy full SHA for d832175
pythonkc_site/meetups/events.py
@@ -38,8 +38,8 @@ def memoize_in_cache(cache_key, cache_timeout_seconds=None):
38
"""
39
40
backup_cache_key = cache_key + '_backup'
41
- backup_cache_timeout_seconds = (cache_timeout_seconds * 100
42
- if cache_timeout_seconds else
+ backup_cache_timeout_seconds = (cache_timeout_seconds * 10000
+ if cache_timeout_seconds else
43
60 * 60 * 24)
44
45
def decorator(func):
@@ -50,7 +50,7 @@ def decorated():
50
try:
51
value = func()
52
cache.set(cache_key, value, cache_timeout_seconds)
53
- cache.set(backup_cache_key, value,
+ cache.set(backup_cache_key, value,
54
backup_cache_timeout_seconds)
55
except:
56
value = cache.get(backup_cache_key)
0 commit comments