Removed UpdateCacheMiddleware._session_accessed()
This method is unused since f567d04b24
This commit is contained in:
parent
99ca7c2bd3
commit
0e60912492
|
@ -64,12 +64,6 @@ class UpdateCacheMiddleware(object):
|
||||||
self.cache_alias = settings.CACHE_MIDDLEWARE_ALIAS
|
self.cache_alias = settings.CACHE_MIDDLEWARE_ALIAS
|
||||||
self.cache = caches[self.cache_alias]
|
self.cache = caches[self.cache_alias]
|
||||||
|
|
||||||
def _session_accessed(self, request):
|
|
||||||
try:
|
|
||||||
return request.session.accessed
|
|
||||||
except AttributeError:
|
|
||||||
return False
|
|
||||||
|
|
||||||
def _should_update_cache(self, request, response):
|
def _should_update_cache(self, request, response):
|
||||||
return hasattr(request, '_cache_update_cache') and request._cache_update_cache
|
return hasattr(request, '_cache_update_cache') and request._cache_update_cache
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue