From e90c89dcf12043d855655346d6598180922ac526 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Sat, 30 Sep 2023 10:39:29 +0000 Subject: [PATCH] Change Redis parser class --- app/settings.py | 4 ++-- requirements.txt | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/settings.py b/app/settings.py index 6d0fd30..e7f1c46 100644 --- a/app/settings.py +++ b/app/settings.py @@ -60,11 +60,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 b29efa8..fbb5d15 100644 --- a/requirements.txt +++ b/requirements.txt @@ -24,6 +24,7 @@ git+https://git.zm.is/XF/django-crud-mixins redis hiredis django-cachalot +django_redis PyOTP aiocoingecko requests