Skip to content

Commit

Permalink
let cache in dev using locmemcache
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentporte committed Dec 10, 2024
1 parent 61f15af commit e913196
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions config/settings/dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down

0 comments on commit e913196

Please sign in to comment.