Accidentally disabled cache_if_anonymous earlier. Re-enabling.
This commit is contained in:
@@ -38,7 +38,7 @@ def cache_if_anonymous(view_func):
|
||||
|
||||
@wraps(view_func)
|
||||
def _decorated(request, *args, **kwargs):
|
||||
if False and not request.user.is_authenticated():
|
||||
if not request.user.is_authenticated():
|
||||
#Use the cache
|
||||
cache_key = "cache_if_anonymous." + request.path
|
||||
response = cache.get(cache_key)
|
||||
|
||||
Reference in New Issue
Block a user