From 313b677e79ecdcdf0886bf2b87124e16fa8f18c7 Mon Sep 17 00:00:00 2001 From: Ben Webb Date: Mon, 9 Oct 2023 12:16:50 +0000 Subject: [PATCH] settings: Change from database cache to local memory cache Because I think lots of trips to the database is slowing down page load. --- iati/settings/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iati/settings/base.py b/iati/settings/base.py index 941fe8627..5f504c65b 100644 --- a/iati/settings/base.py +++ b/iati/settings/base.py @@ -643,12 +643,12 @@ # Caches CACHES = { 'default': { - 'BACKEND': 'django.core.cache.backends.db.DatabaseCache', + 'BACKEND': 'django.core.cache.backends.locmem.LocMemCache', 'LOCATION': 'wagtail_cache', 'TIMEOUT': 86400, }, 'renditions': { - 'BACKEND': 'django.core.cache.backends.db.DatabaseCache', + 'BACKEND': 'django.core.cache.backends.locmem.LocMemCache', 'LOCATION': 'wagtail_renditions_cache', 'TIMEOUT': 86400, }