diff --git a/app/settings.py b/app/settings.py index b673e4d..fe1878e 100644 --- a/app/settings.py +++ b/app/settings.py @@ -50,11 +50,11 @@ INSTALLED_APPS = [ # Performance optimisations CACHES = { "default": { - "BACKEND": "django.core.cache.backends.redis.RedisCache", + "BACKEND": "django_redis.cache.RedisCache", "LOCATION": "unix:///var/run/socks/redis.sock", "OPTIONS": { "db": "10", - "parser_class": "redis.connection.HiredisParser", + # "parser_class": "django_redis.cache.RedisCache", "pool_class": "redis.BlockingConnectionPool", }, } diff --git a/requirements.txt b/requirements.txt index 8c8c952..ede10dc 100644 --- a/requirements.txt +++ b/requirements.txt @@ -26,3 +26,4 @@ git+https://git.zm.is/XF/django-crud-mixins redis hiredis django-cachalot +django_redis