MCPcopy
hub / github.com/django/django / _should_update_cache

Method _should_update_cache

django/middleware/cache.py:82–83  ·  view source on GitHub ↗
(self, request, response)

Source from the content-addressed store, hash-verified

80 return caches[self.cache_alias]
81
82 def _should_update_cache(self, request, response):
83 return hasattr(request, "_cache_update_cache") and request._cache_update_cache
84
85 def process_response(self, request, response):
86 """Set the cache, if needed."""

Callers 1

process_responseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected