              request._cache_update_cache = False
              return None # Don't cache requests from authenticated users.
  
          # try and get the cached GET response
          cache_key = get_cache_key(request, self.key_prefix, 'GET')
  
          if cache_key is None:
              request._cache_update_cache = True
              return None # No cache information available, need to rebuild.
  
          response = self.cache.get(cache_key, None)
 
</s> remove             cache_key = get_cache_key(request, self.key_prefix, 'HEAD')
 </s> add             cache_key = get_cache_key(request, self.key_prefix, 'HEAD', cache=self.cache) </s> remove             cache_key = learn_cache_key(request, response, timeout, self.key_prefix)
 </s> add             cache_key = learn_cache_key(request, response, timeout, self.key_prefix, cache=self.cache)
        cache_key = get_cache_key(request, self.key_prefix, 'GET', cache=self.cache)
              request._cache_update_cache = False
              return None # Don't cache requests from authenticated users.
  
          # try and get the cached GET response
        cache_key = get_cache_key(request, self.key_prefix, 'GET', cache=self.cache)
        cache_key = get_cache_key(request, self.key_prefix, 'GET', cache=self.cache)
          if cache_key is None:
              request._cache_update_cache = True
              return None # No cache information available, need to rebuild.
  
          response = self.cache.get(cache_key, None)
keep keep keep keep replace replace keep keep keep keep keep
 Beefed up the tests for multi-cache handling of the cache middleware and view decorators, and made a couple of tweaks for edge cases as a result.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15021 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
django/middleware/cache.py