[1.8.x] Removed UpdateCacheMiddleware._session_accessed()
This method is unused sincef567d04b24
Backport of0e60912492
from master
This commit is contained in:
parent
7580876fbd
commit
c9df163d0c
|
@ -64,12 +64,6 @@ class UpdateCacheMiddleware(object):
|
|||
self.cache_alias = settings.CACHE_MIDDLEWARE_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):
|
||||
return hasattr(request, '_cache_update_cache') and request._cache_update_cache
|
||||
|
||||
|
|
Loading…
Reference in New Issue