1
0
mirror of https://github.com/django/django.git synced 2025-01-28 02:59:58 +00:00

[1.8.x] Removed UpdateCacheMiddleware._session_accessed()

This method is unused since f567d04b249913db4a37adab8ba521cdc974d423

Backport of 0e6091249295b0e06aff2b1b4411819f94a1c529 from master
This commit is contained in:
Tim Graham 2015-02-01 20:33:22 -05:00
parent 7580876fbd
commit c9df163d0c

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