I've installed django-redis-cache and redis-py. I've followed the caching docs for Django. As far as I know, the settings below are all that I need. But how do I tell if it's working properly??
settings.py
CACHES = {
'default': {
'BACKEND': 'redis_cache.RedisCache',
'LOCATION': '<host>:<port>',
'OPTIONS': {
'DB': mydb,
'PASSWORD': 'mydbspasswd',
'PARSER_CLASS': 'redis.connection.HiredisParser'
},
},
}
...
MIDDLEWARE_CLASSES = (
'django.middleware.cache.UpdateCacheMiddleware',
...[the rest of my middleware]...
'django.middleware.cache.FetchFromCacheMiddleware',
)
CACHE_MIDDLEWARE_ALIAS = 'default'
CACHE_MIDDLEWARE_SECONDS = (60 * 60)
CACHE_MIDDLEWARE_KEY_PREFIX = ''