From ea57d06bb85ab69ef79ab6951f7f80af1d9f7d62 Mon Sep 17 00:00:00 2001 From: Florent Tapponnier Date: Fri, 24 Jul 2026 18:09:50 +0200 Subject: [PATCH] bench cache: bump keys for network-coverage split Legacy bench 005 network-coverage removed, 2 new slugs added (asset-registry-coverage, dex-network-coverage). Bench SET changed so the 3 unstable_cache keys need lockstep bumps (see comments): - bench-unfiltered v45 -> v46 - all-benchmarks v48 -> v49 - bench-filters v20 -> v21 Without this, the new bench URLs 404 on prod (getBenchmark reads a stale cached bench-set that predates the split), which just tripped the sitemap smoke on #1390. --- src/lib/spec.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/lib/spec.ts b/src/lib/spec.ts index cfdbb300..48adbf92 100644 --- a/src/lib/spec.ts +++ b/src/lib/spec.ts @@ -304,7 +304,9 @@ const loadBenchmarkUnfilteredCached = unstable_cache( // Wormhole VAA latency ship (bench 101). // v44: 027 solana-tx-landing-latency spec removed from main (never got prod data, // duplicate of 016 solana-tx-landing). Bench SET shrank. - ["bench-unfiltered-v45", process.env.VERCEL_ENV === "production" ? "prod" : "all"], + // v46: network-coverage split into asset-registry-coverage + dex-network-coverage + // (bench 005 legacy slug removed, 2 new slugs added). Bench SET changed. + ["bench-unfiltered-v46", process.env.VERCEL_ENV === "production" ? "prod" : "all"], { revalidate: 300, tags: ["benchmarks"] }, ); @@ -510,7 +512,9 @@ const loadAllBenchmarksCached = unstable_cache( // v34: bumped with bench-unfiltered-v31 (084 indexer-latency dropped). // Wormhole VAA latency ship (bench 101). // v47: 027 solana-tx-landing-latency removed from main (see bench-unfiltered-v45). - ["all-benchmarks-v48", process.env.VERCEL_ENV === "production" ? "prod" : "all"], + // v49: network-coverage split into asset-registry-coverage + dex-network-coverage + // (bench SET changed, see bench-unfiltered-v46). + ["all-benchmarks-v49", process.env.VERCEL_ENV === "production" ? "prod" : "all"], { revalidate: 300, tags: ["benchmarks"] }, ); export const loadAllBenchmarks = cache(loadAllBenchmarksCached); @@ -615,7 +619,8 @@ const loadBenchmarkFiltered = unstable_cache( // v17: bumped with the monad-rpc + megaeth-rpc ship (lockstep rule). // v18: bumped with bench-unfiltered-v27 (dense series with nulls). // v19: bumped with bench-unfiltered-v28 (bench vague 2, 081-085). - ["bench-filters-v20", process.env.VERCEL_ENV === "production" ? "prod" : "all"], + // v21: bumped with bench-unfiltered-v46 (network-coverage split). + ["bench-filters-v21", process.env.VERCEL_ENV === "production" ? "prod" : "all"], { revalidate: 300, tags: ["benchmarks"] } );