switched redis cache backend from django_redis to native django redis
also added hireds-py for better performance
This commit is contained in:
parent
ca4aa5f7ea
commit
fa4492cd2c
2 changed files with 2 additions and 5 deletions
|
@ -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']
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
django-redis==5.4.0
|
||||
redis==5.0.1
|
||||
hiredis-py==2.2.3
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue