Permalink
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/middleware/cache.py
View
2 django/middleware/cache.py
@@ -52,7 +52,7 @@ def process_request(self, request):
def process_response(self, request, response):
"Sets the cache, if needed."
- if not request._cache_update_cache:
+ if not hasattr(request, '_cache_update_cache') or not request._cache_update_cache:
# We don't need to update the cache, just return.
return response
if not request.META['REQUEST_METHOD'] == 'GET':

0 comments on commit ed2f241

Please sign in to comment.