From ed336558ac4388346d24bdc8e23f6fa9fc4c8380 Mon Sep 17 00:00:00 2001 From: Anthony LC Date: Thu, 9 Oct 2025 15:09:17 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=91=E2=80=8D=F0=9F=92=BB(config)=20THE?= =?UTF-8?q?ME=5FCUSTOMIZATION=5FCACHE=5FTIMEOUT=20to=2015=20seconds?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In development mode, we will reduce the cache timeout for theme customization to 15 seconds. This change allows developers to see updates to theme settings more quickly without needing to clear the cache manually. --- env.d/development/common | 3 +++ src/backend/impress/settings.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/env.d/development/common b/env.d/development/common index a0cf0fe5..de857d5b 100644 --- a/env.d/development/common +++ b/env.d/development/common @@ -66,3 +66,6 @@ COLLABORATION_WS_URL=ws://localhost:4444/collaboration/ws/ DJANGO_SERVER_TO_SERVER_API_TOKENS=server-api-token Y_PROVIDER_API_BASE_URL=http://y-provider-development:4444/api/ Y_PROVIDER_API_KEY=yprovider-api-key + +# Theme customization +THEME_CUSTOMIZATION_CACHE_TIMEOUT=15 \ No newline at end of file diff --git a/src/backend/impress/settings.py b/src/backend/impress/settings.py index 151f2bfd..2229036c 100755 --- a/src/backend/impress/settings.py +++ b/src/backend/impress/settings.py @@ -490,7 +490,7 @@ class Base(Configuration): environ_prefix=None, ) - THEME_CUSTOMIZATION_CACHE_TIMEOUT = values.Value( + THEME_CUSTOMIZATION_CACHE_TIMEOUT = values.IntegerValue( 60 * 60 * 24, environ_name="THEME_CUSTOMIZATION_CACHE_TIMEOUT", environ_prefix=None,