Skip to content

Commit 83841dd

Browse files
authored
Mark unstable_cache as legacy for better understanding
Clarify that `unstable_cache` is a legacy API and recommend using Cache Components instead.
1 parent 83ae64f commit 83841dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/01-app/01-getting-started/09-caching-and-revalidating.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ export async function updateUser(id) {
224224
225225
See the [`revalidatePath` API reference](/docs/app/api-reference/functions/revalidatePath) to learn more.
226226
227-
## `unstable_cache`
227+
## `unstable_cache` (Legacy)
228228
229229
> **Good to know**: `unstable_cache` is an experimental API. We recommend opting into [Cache Components](/docs/app/getting-started/cache-components) and replacing `unstable_cache` with the [`use cache`](/docs/app/api-reference/directives/use-cache) directive. See the [Cache Components documentation](/docs/app/getting-started/cache-components) for more details.
230230

0 commit comments

Comments
 (0)