Accidentally disabled cache_if_anonymous earlier. Re-enabling.

This commit is contained in:
Bridger Maxwell
2012-07-22 17:40:27 -04:00
parent 0103c405fc
commit 6caee537a1

View File

@@ -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)