From 22dfa8906b2037be4a501a9e871e7159d343f587 Mon Sep 17 00:00:00 2001 From: Flotapponnier <160007691+Flotapponnier@users.noreply.github.com> Date: Fri, 24 Jul 2026 16:08:00 +0200 Subject: [PATCH] hotfix: bump rpc-hub-cohort cache v4->v5 (bust sticky-null on chain RPC section) (#1364) Co-authored-by: Florent Tapponnier --- src/lib/rpc-hub-stats.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/rpc-hub-stats.ts b/src/lib/rpc-hub-stats.ts index 426cd5c1..350e67fe 100644 --- a/src/lib/rpc-hub-stats.ts +++ b/src/lib/rpc-hub-stats.ts @@ -450,7 +450,11 @@ const fetchRpcHubCached = unstable_cache( // v3: pivot rows gained medianSuccessPct/errors24h + per-chain // successPct/sampleSize; chains gained unresponsive[] rows. // v2: chains gained unresponsiveCount (unresponsive provider rows). - ["rpc-hub-cohort-v4", process.env.VERCEL_ENV === "production" ? "prod" : "all"], + // v5: purge sticky-null cache for /chains/ RPC section (2026-07-24). + // Snapshot has all 44 chains + best=YES, but ChainRpcSection was returning + // null on every /chains/ render (Fastest public RPC on text + // missing prod-wide). Bump busts the stuck v4 entry. + ["rpc-hub-cohort-v5", process.env.VERCEL_ENV === "production" ? "prod" : "all"], { revalidate: 60, tags: ["rpc-cohort"] }, );