Oops, forgot to use query string for caching

This commit is contained in:
Ilya Zverev 2017-01-26 14:45:58 +03:00
parent 63e7525c97
commit 45e59d6b70

View file

@ -15,7 +15,7 @@ def cached(timeout=5 * 60, key='view'):
def decorator(f):
@wraps(f)
def decorated_function(*args, **kwargs):
cache_key = '{}/{}'.format(key, request.path)
cache_key = '{}/{}'.format(key, request.full_path)
rv = cache.get(cache_key)
if rv is not None:
return rv