Fixed #19347 -- Removed unused variable definition in FetchFromCacheMiddleware
Thanks gregplaysguitar at gmail.com for the report.
This commit is contained in:
parent
a0cd6dd11e
commit
c0efbc7b53
|
@ -126,7 +126,6 @@ class FetchFromCacheMiddleware(object):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.cache_timeout = settings.CACHE_MIDDLEWARE_SECONDS
|
self.cache_timeout = settings.CACHE_MIDDLEWARE_SECONDS
|
||||||
self.key_prefix = settings.CACHE_MIDDLEWARE_KEY_PREFIX
|
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_alias = settings.CACHE_MIDDLEWARE_ALIAS
|
||||||
self.cache = get_cache(self.cache_alias)
|
self.cache = get_cache(self.cache_alias)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue