From 98e6f703e1df5f47079959c0a40d6db18c03d54d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emanuel=20Sch=C3=BCtze?= Date: Thu, 26 Jan 2017 17:05:43 +0100 Subject: [PATCH] Use custom redis prefix for asgi and cache entries. Note: These prefix have to be unique for each OpenSlides instance! --- openslides/utils/settings.py.tpl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openslides/utils/settings.py.tpl b/openslides/utils/settings.py.tpl index 1d5bd8512..49ac1f795 100644 --- a/openslides/utils/settings.py.tpl +++ b/openslides/utils/settings.py.tpl @@ -80,6 +80,7 @@ if use_redis: # https://channels.readthedocs.io/en/latest/backends.html#redis CHANNEL_LAYERS['default']['BACKEND'] = 'asgi_redis.RedisChannelLayer' + CHANNEL_LAYERS['default']['CONFIG']['prefix'] = 'asgi:' # Caching @@ -94,7 +95,8 @@ if use_redis: "LOCATION": "redis://127.0.0.1:6379/0", "OPTIONS": { "CLIENT_CLASS": "django_redis.client.DefaultClient", - } + }, + "KEY_PREFIX": "openslides-cache" } }