From c9df163d0ceae254fd16aec895253443b8e6fcd8 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Sun, 1 Feb 2015 20:33:22 -0500 Subject: [PATCH] [1.8.x] Removed UpdateCacheMiddleware._session_accessed() This method is unused since f567d04b249913db4a37adab8ba521cdc974d423 Backport of 0e6091249295b0e06aff2b1b4411819f94a1c529 from master --- django/middleware/cache.py | 6 ------ 1 file changed, 6 deletions(-) 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