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
7 changes: 6 additions & 1 deletion src/app/api/internal/revalidate-aggregate/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,10 @@ export async function POST(req: Request): Promise<NextResponse> {
// worker publish.
revalidateTag("benchmarks", "default");
revalidateTag("data-api-cohort", "default");
return NextResponse.json({ revalidated: true, tags: ["bench-aggregate", "benchmarks", "data-api-cohort"] });
// Invalidate HL cohort caches (builder stats, history blob, leaderboard)
// so new builders added to Prometheus (e.g. fomo) surface on the next
// request without waiting for the 1h unstable_cache TTL to expire.
revalidateTag("hl-cohort", "default");
revalidateTag("hl-history", "default");
return NextResponse.json({ revalidated: true, tags: ["bench-aggregate", "benchmarks", "data-api-cohort", "hl-cohort", "hl-history"] });
}
Loading