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:
commit
901212a32c
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user