From c5a9fba0343a844af1802b659824be058d52d978 Mon Sep 17 00:00:00 2001 From: Dariusz Niemczyk Date: Fri, 18 Aug 2023 13:44:34 +0200 Subject: [PATCH] Add cache --- spejstore/settings.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spejstore/settings.py b/spejstore/settings.py index 262b4ea..d1ad172 100644 --- a/spejstore/settings.py +++ b/spejstore/settings.py @@ -60,6 +60,7 @@ INSTALLED_APPS = [ ] MIDDLEWARE = [ + "django.middleware.cache.UpdateCacheMiddleware", "django.middleware.security.SecurityMiddleware", "whitenoise.middleware.WhiteNoiseMiddleware", "django.contrib.sessions.middleware.SessionMiddleware", @@ -69,6 +70,7 @@ MIDDLEWARE = [ "django.contrib.messages.middleware.MessageMiddleware", "django.middleware.clickjacking.XFrameOptionsMiddleware", "social_django.middleware.SocialAuthExceptionMiddleware", + "django.middleware.cache.FetchFromCacheMiddleware", ] ROOT_URLCONF = "spejstore.urls"