mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-05-31 22:58:18 +00:00
Adds django cache prefix
This commit is contained in:
parent
7469f1f4ca
commit
f608ab17bb
|
@ -242,6 +242,7 @@ SEARCH_TIMEOUT = env.int("SEARCH_TIMEOUT", 8)
|
|||
# timeout for a query to an individual connector
|
||||
QUERY_TIMEOUT = env.int("INTERACTIVE_QUERY_TIMEOUT", env.int("QUERY_TIMEOUT", 5))
|
||||
|
||||
CACHE_KEY_PREFIX = "django_cache"
|
||||
# Redis cache backend
|
||||
if env.bool("USE_DUMMY_CACHE", False):
|
||||
CACHES = {
|
||||
|
@ -258,6 +259,7 @@ else:
|
|||
"default": {
|
||||
"BACKEND": "django_redis.cache.RedisCache",
|
||||
"LOCATION": REDIS_ACTIVITY_URL,
|
||||
"KEY_PREFIX": CACHE_KEY_PREFIX,
|
||||
"OPTIONS": {
|
||||
"CLIENT_CLASS": "django_redis.client.DefaultClient",
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue