Change Redis parser class

This commit is contained in:
Mark Veidemanis 2023-09-30 10:45:47 +00:00
parent f62f0881a1
commit a519a4ce5e
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
2 changed files with 3 additions and 2 deletions

View File

@ -50,11 +50,11 @@ INSTALLED_APPS = [
# Performance optimisations # Performance optimisations
CACHES = { CACHES = {
"default": { "default": {
"BACKEND": "django.core.cache.backends.redis.RedisCache", "BACKEND": "django_redis.cache.RedisCache",
"LOCATION": "unix:///var/run/socks/redis.sock", "LOCATION": "unix:///var/run/socks/redis.sock",
"OPTIONS": { "OPTIONS": {
"db": "10", "db": "10",
"parser_class": "redis.connection.HiredisParser", # "parser_class": "django_redis.cache.RedisCache",
"pool_class": "redis.BlockingConnectionPool", "pool_class": "redis.BlockingConnectionPool",
}, },
} }

View File

@ -26,3 +26,4 @@ git+https://git.zm.is/XF/django-crud-mixins
redis redis
hiredis hiredis
django-cachalot django-cachalot
django_redis