From fce56d5dd8f5a2d086254395213b39b0a73f018f Mon Sep 17 00:00:00 2001 From: Steve Jalim Date: Sat, 16 Nov 2024 22:55:33 +0000 Subject: [PATCH] Rename 'default' cache time to CACHE_TIME_SHORT to make it more meaningful a name --- bedrock/settings/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bedrock/settings/base.py b/bedrock/settings/base.py index c9d1546c3d5..510c1399b61 100644 --- a/bedrock/settings/base.py +++ b/bedrock/settings/base.py @@ -86,7 +86,7 @@ def data_path(*args): "image_renditions": {"URL": f"{REDIS_URL}/0"}, } -CACHE_TIME_DEFAULT = 60 * 10 # 10 mins +CACHE_TIME_SHORT = 60 * 10 # 10 mins CACHE_TIME_MED = 60 * 60 # 1 hour CACHE_TIME_LONG = 60 * 60 * 6 # 6 hours @@ -95,7 +95,7 @@ def data_path(*args): "default": { "BACKEND": "bedrock.base.cache.SimpleDictCache", "LOCATION": "default", - "TIMEOUT": CACHE_TIME_DEFAULT, + "TIMEOUT": CACHE_TIME_SHORT, "OPTIONS": { "MAX_ENTRIES": 5000, "CULL_FREQUENCY": 4, # 1/4 entries deleted if max reached