Adjust DB caching of /develop/ docs

This commit is contained in:
sdarwin
2025-09-03 12:28:25 -06:00
committed by Kari Skinner
parent 61256a1fdf
commit 2bc676864a
2 changed files with 17 additions and 2 deletions

View File

@@ -282,6 +282,8 @@ CELERY_BROKER_TRANSPORT_OPTIONS = {
}
CELERY_RESULT_BACKEND_THREAD_SAFE = True
CELERY_TASK_ALWAYS_EAGER = env("CELERY_TASK_ALWAYS_EAGER", False)
# Reduce large amount of logging in redis. Usually 1 day.
CELERY_TASK_RESULT_EXPIRES = 3600
CACHES = {
"default": {
@@ -300,7 +302,9 @@ CACHES = {
ENABLE_DB_CACHE = env.bool("ENABLE_DB_CACHE", default=False)
# Default interval by which to clear the static content cache
CLEAR_STATIC_CONTENT_CACHE_DAYS = 7
# New method: "never" clear, just overwrite, so that the id
# field doesn't expand without bounds.
CLEAR_STATIC_CONTENT_CACHE_DAYS = 7000
# Hyperkitty
HYPERKITTY_DATABASE_NAME = env("HYPERKITTY_DATABASE_NAME", default="")