Skip to content

Commit

Permalink
feat: add information that revalidate interval is in seconds (#64229)
Browse files Browse the repository at this point in the history
Add information that revalidate interval is in seconds to unstable_cache

It's not obvious as "usually" time is in milliseconds

Co-authored-by: JJ Kasper <jj@jjsweb.site>
  • Loading branch information
Jaaneek and ijjk authored Apr 15, 2024
1 parent be2c20a commit 2646cd0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/next/src/server/web/spec-extension/unstable-cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ export function unstable_cache<T extends Callback>(
cb: T,
keyParts?: string[],
options: {
/**
* The revalidation interval in seconds.
*/
revalidate?: number | false
tags?: string[]
} = {}
Expand Down

0 comments on commit 2646cd0

Please sign in to comment.