Merge pull request 'fix: returns board cache-hit path referenced undefined CACHE_TTL_MS (500)' (#53) from codex/lunanting-supplier-coop-001 into main

This commit is contained in:
Xkh5201314 2026-09-28 15:41:35 +08:00
commit 901212a32c

View File

@ -420,7 +420,7 @@ async function loadReplicaRows({
const basis = resolveCreatedAtBasis(createdAtBasis);
const key = buildCacheKey(warehouse, basis);
const cached = rowCache.get(key);
if (!refresh && cached && cached.rows && Date.now() - cached.at < CACHE_TTL_MS) {
if (!refresh && cached && cached.rows && Date.now() - cached.at < resolveCacheTtlMs()) {
return cached.rows;
}
const running = inflightCache.get(key);