Django

Code

Changeset 954

Show
Ignore:
Timestamp:
10/19/05 08:44:55 (3 years ago)
Author:
adrian
Message:

Fixed #647 -- Fixed cache middleware not to expect _cache_update_cache, in case of 404s and 500s. Thanks, Eugene

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/middleware/cache.py

    r821 r954  
    5353    def process_response(self, request, response): 
    5454        "Sets the cache, if needed." 
    55         if not request._cache_update_cache: 
     55        if not hasattr(request, '_cache_update_cache') or not request._cache_update_cache: 
    5656            # We don't need to update the cache, just return. 
    5757            return response