Skip to content

Commit bb0f3c4

Browse files
committed
Fix JSDoc comment for 'seconds' cache life profile
The `expire` value for the `'seconds'` cache life profile is one minute, not one second. [Source](https://github.com/vercel/next.js/blob/6b35981a80959db80e89a5dff27535c4094e3828/packages/next/src/server/config-shared.ts#L1152)
1 parent 6b35981 commit bb0f3c4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/next/cache.d.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,12 @@ export function unstable_cacheLife(profile: 'default'): void
3030
* ```
3131
* stale: 0 seconds
3232
* revalidate: 1 seconds
33-
* expire: 1 seconds
33+
* expire: 1 minute
3434
* ```
3535
*
3636
* This cache may be stale on clients for 0 seconds before checking with the server.
37-
* This cache will expire after 1 seconds. The next request will recompute it.
37+
* If the server receives a new request after 1 second, start revalidating new values in the background.
38+
* If this entry has no traffic for 1 minute it will expire. The next request will recompute it.
3839
*/
3940
export function unstable_cacheLife(profile: 'seconds'): void
4041

0 commit comments

Comments
 (0)