          return _generate_cache_key(request, method, headerlist, key_prefix)
      else:
          return None
  
  def learn_cache_key(request, response, cache_timeout=None, key_prefix=None):
      """
      Learns what headers to take into account for some request path from the
      response object. It stores those headers in a global path registry so that
      later access to that path will know what headers to take into account
      without building the response object itself. The headers are named in the
 
</s> remove def get_cache_key(request, key_prefix=None, method='GET'):
 </s> add def get_cache_key(request, key_prefix=None, method='GET', cache=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)
def learn_cache_key(request, response, cache_timeout=None, key_prefix=None, cache=None):
          return _generate_cache_key(request, method, headerlist, key_prefix)
      else:
          return None
  
def learn_cache_key(request, response, cache_timeout=None, key_prefix=None, cache=None):
      """
      Learns what headers to take into account for some request path from the
      response object. It stores those headers in a global path registry so that
      later access to that path will know what headers to take into account
      without building the response object itself. The headers are named in the
keep keep keep keep 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/utils/cache.py