From 6caee537a157c028883372a64cbb609cf48558a9 Mon Sep 17 00:00:00 2001 From: Bridger Maxwell Date: Sun, 22 Jul 2012 17:40:27 -0400 Subject: [PATCH] Accidentally disabled cache_if_anonymous earlier. Re-enabling. --- common/djangoapps/util/cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/djangoapps/util/cache.py b/common/djangoapps/util/cache.py index 35715946a9..e253b5b633 100644 --- a/common/djangoapps/util/cache.py +++ b/common/djangoapps/util/cache.py @@ -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)