Skip to content

Commit b0826aa

Browse files
authored
chore: merge outstanding PR
fix(worker): reduce KV cache TTL to 5s
2 parents a445a79 + 143b5be commit b0826aa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

web/strategy-switch-console/worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const AUDIT_LOG_KEY = "audit_log";
3030
const AUDIT_LOG_LIMIT = 50;
3131
const CURRENT_STRATEGIES_TIMEOUT_MS = 25000;
3232
const CURRENT_STRATEGIES_CACHE_KEY = "current_strategies_cache";
33-
const CURRENT_STRATEGIES_CACHE_TTL_MS = 120_000; // 2 minreturn cached data without refresh
33+
const CURRENT_STRATEGIES_CACHE_TTL_MS = 5_000; // 5 secrapid refresh during active development
3434
const CURRENT_STRATEGIES_STALE_TTL_MS = 600_000; // 10 min — return stale + background refresh
3535
const GITHUB_API_TIMEOUT_MS = 8000;
3636

0 commit comments

Comments
 (0)