Skip to content
Snippets Groups Projects
Commit b08e8819 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Merge branch 'sessions-cached-db' into 'master'

Use Django's session write-through cache

See merge request !971
parents eeca2dd2 66bd7d8b
No related branches found
No related tags found
1 merge request!971Use Django's session write-through cache
Pipeline #113151 canceled
......@@ -47,6 +47,7 @@ Changed
* [Dev] The undocumented field `check` on `DataCheckResult` was renamed to `data_check`
* Frontend bundling migrated from Webpack to Vite
* Get dashboard widgets and data checks from apps with new registration mechanism.
* Use write-through cache for sessions to retain on clear_cache
* Better error page with redirect option to login page when user has no permission to access a route.
Fixed
......
......@@ -277,8 +277,9 @@ CACHALOT_TIMEOUT = _settings.get("caching.cachalot.timeout", None)
CACHALOT_DATABASES = set(["default", "default_oot"])
SILENCED_SYSTEM_CHECKS += ["cachalot.W001"]
CACHALOT_ENABLED = _settings.get("caching.query_caching", True)
CACHALOT_UNCACHABLE_TABLES = ("django_migrations", "django_session")
SESSION_ENGINE = "django.contrib.sessions.backends.cache"
SESSION_ENGINE = "django.contrib.sessions.backends.cached_db"
SESSION_CACHE_ALIAS = "default"
# Password validation
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment