Skip to content

Commit 76a09d4

Browse files
committed
increase in-memory caching retention time for repeated calls
1 parent 61b9547 commit 76a09d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/webapp/databricks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ def _sha256_json(obj: Any) -> str:
8989
).hexdigest()
9090

9191

92-
L1_RESP_CACHE_TTL = int("120") # seconds
93-
L1_VER_CACHE_TTL = int("60") # seconds
92+
L1_RESP_CACHE_TTL = int("600") # seconds
93+
L1_VER_CACHE_TTL = int("3600") # seconds
9494
L1_RESP_CACHE = TTLCache(maxsize=128, ttl=L1_RESP_CACHE_TTL)
9595
L1_VER_CACHE = TTLCache(maxsize=256, ttl=L1_VER_CACHE_TTL)
9696
_L1_LOCK = threading.RLock()

0 commit comments

Comments
 (0)