About

Next.js 16 cache architecture with WordPress integration

Architecture

Cache Handlers

  • • cache-handler.mjs — Legacy (ISR, fetch cache)
  • • cacheHandlers/remote-handler.mjs — Next.js 16 'use cache'
  • • Auto-detects GCS vs file-based storage
  • • In-memory cache disabled

Cache Strategy

  • • 'use cache' with infinite cacheLife
  • • cacheTag() for surrogate keys
  • • On-demand revalidation from WordPress
  • • No time-based expiration

Dynamic Rendering Demo

The section below renders fresh on every visit (client component). Refresh to see the timestamp update.

Loading...