Change Redis cache

This commit is contained in:
Mark Veidemanis 2024-06-10 05:28:31 +01:00
parent e10c6f5c46
commit a788a65ba6
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
4 changed files with 4 additions and 3 deletions

View File

@ -60,11 +60,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

@ -1,5 +1,4 @@
import os import os
import stripe import stripe
from django.conf import settings from django.conf import settings

View File

@ -30,4 +30,6 @@ git+https://git.zm.is/XF/django-crud-mixins
redis redis
hiredis hiredis
django-cachalot django-cachalot
django_redis
# Billing
lago-python-client lago-python-client