Ticket #647: django.cache.patch

File django.cache.patch, 541 bytes (added by eugene@…, 19 years ago)
  • cache.py

     
    5252
    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
    5858        if not request.META['REQUEST_METHOD'] == 'GET':
Back to Top