Skip to content

Commit 5a8da40

Browse files
AntoLCOvgodd
authored andcommitted
πŸ§‘β€πŸ’»(config) THEME_CUSTOMIZATION_CACHE_TIMEOUT to 15 seconds
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.
1 parent 0639594 commit 5a8da40

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

β€Ženv.d/development/commonβ€Ž

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,6 @@ COLLABORATION_WS_URL=ws://localhost:4444/collaboration/ws/
6666
DJANGO_SERVER_TO_SERVER_API_TOKENS=server-api-token
6767
Y_PROVIDER_API_BASE_URL=http://y-provider-development:4444/api/
6868
Y_PROVIDER_API_KEY=yprovider-api-key
69+
70+
# Theme customization
71+
THEME_CUSTOMIZATION_CACHE_TIMEOUT=15

β€Žsrc/backend/impress/settings.pyβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ class Base(Configuration):
490490
environ_prefix=None,
491491
)
492492

493-
THEME_CUSTOMIZATION_CACHE_TIMEOUT = values.Value(
493+
THEME_CUSTOMIZATION_CACHE_TIMEOUT = values.IntegerValue(
494494
60 * 60 * 24,
495495
environ_name="THEME_CUSTOMIZATION_CACHE_TIMEOUT",
496496
environ_prefix=None,

0 commit comments

Comments
Β (0)