Remove next/cache usage (use cache, cacheLife, cacheTag, cacheComponents)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01F22Ms5Cxam5UHyxaCrtZzu
This commit is contained in:
Rami Bitar
2026-07-29 11:26:23 -04:00
co-authored by Claude Fable 5
parent f23332e42c
commit 1e58ba4ca4
15 changed files with 24 additions and 81 deletions
+3 -3
View File
@@ -17,9 +17,9 @@ import { Providers } from "./providers";
/**
* Async server shell that owns the per-request (dynamic) reads: the cart seed
* + the shop analytics GID. With `cacheComponents: true`, uncached/dynamic data
* accessed in a Server Component must sit inside a `<Suspense>` boundary so the
* static HTML shell prerenders and the per-buyer parts stream
* + the shop analytics GID. The dynamic data access in this Server Component
* sits inside a `<Suspense>` boundary so the static HTML shell prerenders and
* the per-buyer parts stream
* (`next/server` `connection()` + `headers()`/`cookies()` are per-request).
*
* Rendered inside `<Suspense>` from the root layout. `await connection()`