From 106043a5734bb7ac86a4ad4566797c45fc9ef826 Mon Sep 17 00:00:00 2001 From: Lee Robinson Date: Sun, 12 Jan 2025 09:51:47 -0600 Subject: [PATCH] docs: unstable_cache clarify usage (#74802) --- docs/01-app/04-api-reference/04-functions/unstable_cache.mdx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/01-app/04-api-reference/04-functions/unstable_cache.mdx b/docs/01-app/04-api-reference/04-functions/unstable_cache.mdx index eb1ca1ce29a4f..bd46dba5add0f 100644 --- a/docs/01-app/04-api-reference/04-functions/unstable_cache.mdx +++ b/docs/01-app/04-api-reference/04-functions/unstable_cache.mdx @@ -1,10 +1,9 @@ --- title: unstable_cache description: API Reference for the unstable_cache function. -version: legacy --- -In version 15, we recommend using the [`use cache`](/docs/app/api-reference/directives/use-cache) directive instead. +> **Note:** This API will be replaced by [`use cache`](/docs/app/api-reference/directives/use-cache) when it reaches stability. `unstable_cache` allows you to cache the results of expensive operations, like database queries, and reuse them across multiple requests.