From e9131964b347af21b85ff125e165611c201b5b26 Mon Sep 17 00:00:00 2001 From: vincent porte Date: Tue, 10 Dec 2024 12:12:12 +0100 Subject: [PATCH] let cache in dev using locmemcache --- config/settings/dev.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/config/settings/dev.py b/config/settings/dev.py index 94f751e3..ed7face9 100644 --- a/config/settings/dev.py +++ b/config/settings/dev.py @@ -42,6 +42,16 @@ MIDDLEWARE += ["debug_toolbar.middleware.DebugToolbarMiddleware"] # noqa F405 +CACHES = { + "default": { + "BACKEND": "django.core.cache.backends.locmem.LocMemCache", + }, + "machina_attachments": { + "BACKEND": "django.core.cache.backends.filebased.FileBasedCache", + "LOCATION": "/tmp", + }, +} + DEBUG_TOOLBAR_CONFIG = { # https://django-debug-toolbar.readthedocs.io/en/latest/panels.html#panels "DISABLE_PANELS": [