mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-11 09:07:18 +01:00
Feature: Cache metadata and suggestions in Redis (#5638)
This commit is contained in:
parent
45e2b7f814
commit
25542c56b9
7 changed files with 415 additions and 78 deletions
|
|
@ -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", ""),
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue