Commit 6caee537 by Bridger Maxwell

Accidentally disabled cache_if_anonymous earlier. Re-enabling.

parent 0103c405
...@@ -38,7 +38,7 @@ def cache_if_anonymous(view_func): ...@@ -38,7 +38,7 @@ def cache_if_anonymous(view_func):
@wraps(view_func) @wraps(view_func)
def _decorated(request, *args, **kwargs): def _decorated(request, *args, **kwargs):
if False and not request.user.is_authenticated(): if not request.user.is_authenticated():
#Use the cache #Use the cache
cache_key = "cache_if_anonymous." + request.path cache_key = "cache_if_anonymous." + request.path
response = cache.get(cache_key) response = cache.get(cache_key)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment