Browse files

Fixed #647 -- Fixed cache middleware not to expect _cache_update_cach…

…e, in case of 404s and 500s. Thanks, Eugene

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent d863286 commit ed2f2419a1a49e1cc3e1279ae922babafcd0395a @adrianholovaty adrianholovaty committed Oct 19, 2005
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/middleware/
@@ -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.