File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 113113CACHES = {
114114 "default" : {
115115 "BACKEND" : "django_redis.cache.RedisCache" ,
116- "LOCATION" : "redis://localhost/5 " ,
116+ "LOCATION" : "redis://localhost/0 " ,
117117 "OPTIONS" : {
118118 "CLIENT_CLASS" : "django_redis.client.DefaultClient" ,
119119 },
120- }
120+ },
121+ "sessions" : {
122+ "BACKEND" : "django_redis.cache.RedisCache" ,
123+ "LOCATION" : "redis://localhost/1" ,
124+ "OPTIONS" : {
125+ "CLIENT_CLASS" : "django_redis.client.DefaultClient" ,
126+ },
127+ },
121128}
122129
123130ASGI_APPLICATION = "openwisp2.asgi.application"
131138 "default" : {
132139 "BACKEND" : "channels_redis.core.RedisChannelLayer" ,
133140 "CONFIG" : {
134- "hosts" : ["redis://localhost/7 " ],
141+ "hosts" : ["redis://localhost/3 " ],
135142 "group_expiry" : 3600 ,
136143 "capacity" : 1000 ,
137144 "expiry" : 30 ,
140147 }
141148
142149SESSION_ENGINE = "django.contrib.sessions.backends.cache"
143- SESSION_CACHE_ALIAS = "default "
150+ SESSION_CACHE_ALIAS = "sessions "
144151
145152LOGGING = {
146153 "version" : 1 ,
167174 LOGGING .update ({"root" : {"level" : "INFO" , "handlers" : ["console" ]}})
168175
169176if not TESTING :
170- CELERY_BROKER_URL = "redis://localhost/6 "
177+ CELERY_BROKER_URL = "redis://localhost/2 "
171178else :
172179 CELERY_TASK_ALWAYS_EAGER = True
173180 CELERY_TASK_EAGER_PROPAGATES = True
You can’t perform that action at this time.
0 commit comments