Use custom redis prefix for asgi and cache entries.

Note: These prefix have to be unique for each OpenSlides instance!
This commit is contained in:
Emanuel Schütze 2017-01-26 17:05:43 +01:00
parent 8897e22df0
commit 98e6f703e1

View File

@ -80,6 +80,7 @@ if use_redis:
# https://channels.readthedocs.io/en/latest/backends.html#redis # https://channels.readthedocs.io/en/latest/backends.html#redis
CHANNEL_LAYERS['default']['BACKEND'] = 'asgi_redis.RedisChannelLayer' CHANNEL_LAYERS['default']['BACKEND'] = 'asgi_redis.RedisChannelLayer'
CHANNEL_LAYERS['default']['CONFIG']['prefix'] = 'asgi:'
# Caching # Caching
@ -94,7 +95,8 @@ if use_redis:
"LOCATION": "redis://127.0.0.1:6379/0", "LOCATION": "redis://127.0.0.1:6379/0",
"OPTIONS": { "OPTIONS": {
"CLIENT_CLASS": "django_redis.client.DefaultClient", "CLIENT_CLASS": "django_redis.client.DefaultClient",
} },
"KEY_PREFIX": "openslides-cache"
} }
} }