Set up database cache for django-q2 monitoring

This commit is contained in:
Adam Goldsmith 2024-05-11 00:56:30 -04:00
parent 3e003bddb7
commit 72cf436e50

View File

@ -85,6 +85,16 @@ class Base(Configuration):
},
]
CACHES = {
"default": {
"BACKEND": "django.core.cache.backends.locmem.LocMemCache",
},
"database": {
"BACKEND": "django.core.cache.backends.db.DatabaseCache",
"LOCATION": "django_cache",
},
}
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
WSGI_APPLICATION = "cmsmanage.wsgi.application"
@ -157,6 +167,7 @@ class Base(Configuration):
"error_reporter": {"admin_email": {}},
"ack_failures": True,
"max_attempts": 1,
"cache": "database",
"ALT_CLUSTERS": {
"internal": {
"retry": 60 * 60,