Commit 236c24a3 authored by Michal Čihař's avatar Michal Čihař

Better variable name

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 64e6d6ff
...@@ -96,19 +96,19 @@ def performance(request): ...@@ -96,19 +96,19 @@ def performance(request):
'production-indexing', 'production-indexing',
)) ))
# Check for sane caching # Check for sane caching
cache = settings.CACHES['default']['BACKEND'].split('.')[-1] caches = settings.CACHES['default']['BACKEND'].split('.')[-1]
if cache in ['MemcachedCache', 'DatabaseCache']: if caches in ['MemcachedCache', 'DatabaseCache']:
# We consider these good # We consider these good
cache = True caches = True
elif cache in ['DummyCache']: elif caches in ['DummyCache']:
# This one is definitely bad # This one is definitely bad
cache = False caches = False
else: else:
# These might not be that bad # These might not be that bad
cache = None caches = None
checks.append(( checks.append((
_('Django caching'), _('Django caching'),
cache, caches,
'production-cache', 'production-cache',
)) ))
# Avatar caching # Avatar caching
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment