From 654b60ff36d817a8d4036233836eeed9eb10d0c1 Mon Sep 17 00:00:00 2001 From: Andrew Hosgood Date: Wed, 12 Jun 2024 19:45:27 +0100 Subject: [PATCH] Add theme to cache key prefix --- app/lib/cache_key_prefix.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/lib/cache_key_prefix.py b/app/lib/cache_key_prefix.py index fe077f36..fba20817 100644 --- a/app/lib/cache_key_prefix.py +++ b/app/lib/cache_key_prefix.py @@ -3,5 +3,4 @@ def cache_key_prefix(): """Make a key that includes GET parameters.""" - return f"{request.full_path}{request.cookies.get('cookie_preferences_set')}" - # return f"{request.full_path}{request.cookies.get("cookie_preferences_set")}{request.cookies.get("cookies_policy")}" + return f"{request.full_path}{request.cookies.get('cookie_preferences_set')}{request.cookies.get('theme')}"