From c0efbc7b534c716fdfba2e5e32a4c41b90f334eb Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Sat, 1 Dec 2012 13:52:26 +0100 Subject: [PATCH] Fixed #19347 -- Removed unused variable definition in FetchFromCacheMiddleware Thanks gregplaysguitar at gmail.com for the report. --- django/middleware/cache.py | 1 - 1 file changed, 1 deletion(-) diff --git a/django/middleware/cache.py b/django/middleware/cache.py index 34bf0ca4a4..de2b86f630 100644 --- a/django/middleware/cache.py +++ b/django/middleware/cache.py @@ -126,7 +126,6 @@ class FetchFromCacheMiddleware(object): def __init__(self): self.cache_timeout = settings.CACHE_MIDDLEWARE_SECONDS self.key_prefix = settings.CACHE_MIDDLEWARE_KEY_PREFIX - self.cache_anonymous_only = getattr(settings, 'CACHE_MIDDLEWARE_ANONYMOUS_ONLY', False) self.cache_alias = settings.CACHE_MIDDLEWARE_ALIAS self.cache = get_cache(self.cache_alias)