Feature: Cache metadata and suggestions in Redis (#5638)

This commit is contained in:
Trenton H
2024-02-04 10:42:21 -08:00
committed by GitHub
parent 45e2b7f814
commit 25542c56b9
7 changed files with 415 additions and 78 deletions

View File

@@ -762,8 +762,12 @@ CELERY_BEAT_SCHEDULE_FILENAME = os.path.join(DATA_DIR, "celerybeat-schedule.db")
# django setting.
CACHES = {
"default": {
"BACKEND": "django.core.cache.backends.redis.RedisCache",
"BACKEND": os.environ.get(
"PAPERLESS_CACHE_BACKEND",
"django.core.cache.backends.redis.RedisCache",
),
"LOCATION": _CHANNELS_REDIS_URL,
"KEY_PREFIX": os.getenv("PAPERLESS_REDIS_PREFIX", ""),
},
}