switched redis cache backend from django_redis to native django redis

also added hireds-py for better performance
This commit is contained in:
Jenny Danzmayr 2023-11-27 23:51:41 +01:00
parent ca4aa5f7ea
commit fa4492cd2c
2 changed files with 2 additions and 5 deletions

View file

@ -225,11 +225,8 @@ HAS_REDIS = bool(config.get('redis', 'location', fallback=None, env='C3NAV_REDIS
if HAS_REDIS:
HAS_REAL_CACHE = True
CACHES['redis'] = {
"BACKEND": "django_redis.cache.RedisCache",
"BACKEND": "django.core.cache.backends.redis.RedisCache",
"LOCATION": config.get('redis', 'location', env='C3NAV_REDIS'),
"OPTIONS": {
"CLIENT_CLASS": "django_redis.client.DefaultClient",
}
}
if not HAS_MEMCACHED:
CACHES['default'] = CACHES['redis']

View file

@ -1,2 +1,2 @@
django-redis==5.4.0
redis==5.0.1
hiredis-py==2.2.3