File tree Expand file tree Collapse file tree 2 files changed +5
-12
lines changed Expand file tree Collapse file tree 2 files changed +5
-12
lines changed Original file line number Diff line number Diff line change 14
14
15
15
CACHES = {
16
16
"default" : {
17
- "BACKEND" : "django_pylibmc.memcached.PyLibMCCache" ,
18
- "LOCATION" : SECRETS .get ("memcached_host" , "127.0.0.1:11211" ),
19
- "BINARY" : True ,
20
- "OPTIONS" : {"tcp_nodelay" : True , "ketama" : True },
17
+ "BACKEND" : "django.core.cache.backends.redis.RedisCache" ,
18
+ "LOCATION" : SECRETS .get ("cache_default_url" , "redis://localhost:6379" ),
21
19
},
20
+ # We use a separate cache for docs so we can purge it when docs are rebuilt
22
21
"docs-pages" : {
23
- "BACKEND" : "redis_cache.RedisCache" ,
24
- "LOCATION" : SECRETS .get ("redis_host" , "localhost:6379" ),
25
- "OPTIONS" : {
26
- "DB" : 2 ,
27
- },
22
+ "BACKEND" : "django.core.cache.backends.redis.RedisCache" ,
23
+ "LOCATION" : SECRETS .get ("cache_docs_url" , "redis://localhost:6379/2" ),
28
24
},
29
25
}
30
26
Original file line number Diff line number Diff line change 1
1
-r common.txt
2
- django-pylibmc==0.6.1
3
- django-redis-cache==3.0.1
4
- pylibmc==1.6.3
5
2
redis==5.0.8
6
3
sentry-sdk==2.11.0
You can’t perform that action at this time.
0 commit comments