Add and document database cache

This commit is contained in:
Tobias Kunze 2025-03-26 15:38:25 +01:00
parent ebf88527fe
commit 70acf2c381
3 changed files with 9 additions and 0 deletions

View file

@ -132,6 +132,13 @@ STATIC_URL = "static/" # CSS, JavaScript, etc.
STATIC_ROOT = BASE_DIR / "static.dist"
MEDIA_URL = "media/" # User uploads, e.g. images
CACHES = {
"default": {
"BACKEND": "django.core.cache.backends.db.DatabaseCache",
"LOCATION": "servala_cache",
}
}
# Additional locations of static files
STATICFILES_FINDERS = (
"django.contrib.staticfiles.finders.FileSystemFinder",