From 61f15afe1b25529d5599dbaf8dfc5f0b292a7794 Mon Sep 17 00:00:00 2001 From: vincent porte Date: Tue, 10 Dec 2024 11:49:29 +0100 Subject: [PATCH] refactor: replace locmemcache with databasecache --- config/settings/base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/settings/base.py b/config/settings/base.py index b918b019..15a5a00a 100644 --- a/config/settings/base.py +++ b/config/settings/base.py @@ -253,7 +253,8 @@ # https://docs.djangoproject.com/en/4.1/topics/cache/ CACHES = { "default": { - "BACKEND": "django.core.cache.backends.locmem.LocMemCache", + "BACKEND": "django.core.cache.backends.db.DatabaseCache", + "LOCATION": "cache_table", }, "machina_attachments": { "BACKEND": "django.core.cache.backends.filebased.FileBasedCache",