diff --git a/django/middleware/cache.py b/django/middleware/cache.py index df33dfce33..7fab78f3dc 100644 --- a/django/middleware/cache.py +++ b/django/middleware/cache.py @@ -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