Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/lib/hl-builder-stats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,9 @@ function toCompactFrontend(
* unstable_cache TTL is 1h rather than 60 s — no need to fan out
* 20 range queries against Prom on every ISR cycle. */
async function fetchHlHistoryRaw(): Promise<HlHistorySummary | null> {
const snapshot = await readCohortSnapshot<HlHistorySummary>(HL_HISTORY_KEY);
// 2h: history is daily-stepped data, 10-min default is too aggressive and
// causes unnecessary 200-query Prom rebuilds on every staleness window.
const snapshot = await readCohortSnapshot<HlHistorySummary>(HL_HISTORY_KEY, 2 * 60 * 60 * 1000);
if (snapshot) return snapshot.data;
const fresh = await fetchHlHistoryFresh();
if (fresh) {
Expand Down
Loading