fix: returns board cache-hit path referenced undefined CACHE_TTL_MS (500) #53

Merged
Xkh5201314 merged 1 commits from codex/lunanting-supplier-coop-001 into main 2026-09-28 15:41:36 +08:00
Collaborator

Replace with resolveCacheTtlMs(). Only triggered once the cache was warm, so local first-run never hit it.

Replace with resolveCacheTtlMs(). Only triggered once the cache was warm, so local first-run never hit it.
Xkh5201314 added 1 commit 2026-09-28 15:41:31 +08:00
缓存 TTL 改成可配(DEFAULT_CACHE_TTL_MS / resolveCacheTtlMs)时漏改了
loadReplicaRows 里的比较表达式,仍写 CACHE_TTL_MS。缓存为空时短路不触发,
所以本地首轮没暴露;生产被预热任务写过缓存后,第二次请求命中该行即
ReferenceError 500。改为调用 resolveCacheTtlMs()。
Xkh5201314 added 1 commit 2026-09-28 15:41:32 +08:00
缓存 TTL 改成可配(DEFAULT_CACHE_TTL_MS / resolveCacheTtlMs)时漏改了
loadReplicaRows 里的比较表达式,仍写 CACHE_TTL_MS。缓存为空时短路不触发,
所以本地首轮没暴露;生产被预热任务写过缓存后,第二次请求命中该行即
ReferenceError 500。改为调用 resolveCacheTtlMs()。
Xkh5201314 merged commit 901212a32c into main 2026-09-28 15:41:36 +08:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: lunanting/cangku#53
No description provided.