Skip to content

Commit

Permalink
Rename 'default' cache time to CACHE_TIME_SHORT to make it more meani…
Browse files Browse the repository at this point in the history
…ngful a name
  • Loading branch information
stevejalim committed Jan 13, 2025
1 parent 58f8aaa commit fce56d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bedrock/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit fce56d5

Please sign in to comment.