Oops, forgot to use query string for caching
This commit is contained in:
parent
63e7525c97
commit
45e59d6b70
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue