Skip to content

fix: bump aggregate-blob cache key v1→v2 - #2034

Merged
Flotapponnier merged 1 commit into
devfrom
fix/aggregate-cache-key
Aug 22, 2026
Merged

fix: bump aggregate-blob cache key v1→v2#2034
Flotapponnier merged 1 commit into
devfrom
fix/aggregate-cache-key

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

What

Bumps ["aggregate-blob-v1"]["aggregate-blob-v2"] in src/lib/aggregate-blob.ts.

Why

The unstable_cache entry for the aggregate blob was potentially holding a stale (all-draft) snapshot. Without revalidateTag being called from the worker (root cause: SITE_URL/REVALIDATE_TOKEN were missing from the VPS worker env), the 60s ISR cycle is the only revalidation mechanism.

Bumping the key forces a cold re-fetch on the next homepage render, which pulls the fresh aggregate from kv.openchainbench.com/aggregate/latest.json (currently 199/201 live).

Infra changes (VPS, already done)

  • Added SITE_URL=https://openchainbench.com and REVALIDATE_TOKEN=<token> to /run/ocb/.env.materialize-worker
  • Set the same REVALIDATE_TOKEN in Vercel production env
  • Recreated the worker container so it picks up the new env vars
  • Future publishes will now POST to /api/internal/revalidate-aggregate and trigger revalidateTag('bench-aggregate') immediately

@Flotapponnier
Flotapponnier merged commit 28fe90d into dev Aug 22, 2026
1 check failed
@Flotapponnier
Flotapponnier deleted the fix/aggregate-cache-key branch August 22, 2026 22:34
Flotapponnier added a commit that referenced this pull request Aug 22, 2026
* fix: bench number 208->232 (208 taken by perp-liq-rate) (#2031)

* fix(audit): 4 bugs + stablecoin/bridge leads, answers cadence, citation direction, bench 233

* fix(audit): answer leads semantics, freshness copy, null bench cards, OI label

* fix(audit): stablecoin/bridge leads semantics, drop hardcoded refresh cadence on answers page

* fix: perp-amm-volume-share duplicate bench number 043 -> 233

* fix(citation): direction-aware headlineSentence for lower-is-better metrics

* fix: bump aggregate-blob cache key to v2 (flush stale ISR) (#2034)
Flotapponnier added a commit that referenced this pull request Aug 22, 2026
* fix: bench number 208->232 (208 taken by perp-liq-rate) (#2031)

* fix(audit): 4 bugs + stablecoin/bridge leads, answers cadence, citation direction, bench 233

* fix(audit): answer leads semantics, freshness copy, null bench cards, OI label

* fix(audit): stablecoin/bridge leads semantics, drop hardcoded refresh cadence on answers page

* fix: perp-amm-volume-share duplicate bench number 043 -> 233

* fix(citation): direction-aware headlineSentence for lower-is-better metrics

* fix: bump aggregate-blob cache key to v2 (flush stale ISR) (#2034)

* feat: /perp-tokens hub — P/E, FDV, revenue for Hyperliquid, GMX, GNS, dYdX, Drift, Ostium
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant