Unlock channels_redis and implement the workaround from the issue to use pub/sub instead

This commit is contained in:
Trenton H
2023-03-23 08:35:09 -07:00
parent 4bd1974911
commit e0d5fd9290
3 changed files with 245 additions and 316 deletions

View File

@@ -358,7 +358,7 @@ TEMPLATES = [
CHANNEL_LAYERS = {
"default": {
"BACKEND": "channels_redis.core.RedisChannelLayer",
"BACKEND": "channels_redis.pubsub.RedisPubSubChannelLayer",
"CONFIG": {
"hosts": [_CHANNELS_REDIS_URL],
"capacity": 2000, # default 100