[1.8.x] Removed UpdateCacheMiddleware._session_accessed()

This method is unused since f567d04b24

Backport of 0e60912492 from master
This commit is contained in:
Tim Graham 2015-02-01 20:33:22 -05:00
parent 7580876fbd
commit c9df163d0c
1 changed files with 0 additions and 6 deletions

View File

@ -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