Skip to content
Snippets Groups Projects
Commit 56cc17b9 authored by Bastien Abadie's avatar Bastien Abadie
Browse files

Merge branch 'redis-cache' into 'master'

Add django-redis-cache support

See merge request !692
parents 51d572d2 1b371f3c
No related branches found
No related tags found
1 merge request!692Add django-redis-cache support
......@@ -241,8 +241,15 @@ TRANSCRIPTIONS_IMPORT_CHUNK_SIZE = 10000
GITLAB_APP_ID = os.environ.get('GITLAB_APP_ID')
GITLAB_APP_SECRET = os.environ.get('GITLAB_APP_SECRET')
if os.environ.get('REDIS_CACHE_LOCATION'):
CACHES = {
'default': {
'BACKEND': 'redis_cache.RedisCache',
'LOCATION': os.environ.get('REDIS_CACHE_LOCATION'),
}
}
# Cache into memcached
if os.environ.get('MEMCACHED_HOST'):
elif os.environ.get('MEMCACHED_HOST'):
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
......
......@@ -8,6 +8,7 @@ chardet==3.0.4
django-admin-hstore-widget==1.0.1
django-cors-headers==2.4.0
django-enumfields==1.0.0
django-redis-cache==2.1.0
djangorestframework==3.11.0
elasticsearch-dsl>=6.0.0,<7.0.0
et-xmlfile==1.0.1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment