Change Redis parser class

This commit is contained in:
Mark Veidemanis 2023-09-30 10:39:29 +00:00
parent 4802c5a5be
commit e90c89dcf1
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
2 changed files with 3 additions and 2 deletions

View File

@ -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",
},
}

View File

@ -24,6 +24,7 @@ git+https://git.zm.is/XF/django-crud-mixins
redis
hiredis
django-cachalot
django_redis
PyOTP
aiocoingecko
requests