Skip to content

Commit ba62b95

Browse files
committed
feat: reduce default ISR revalidation to 5 min, simulate use cache default behavior
1 parent efa7b88 commit ba62b95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ export const dateFormatter = new Intl.DateTimeFormat("en", {
1010

1111
export const cache: typeof nextCache = (callback, keyParts, options) =>
1212
reactCache(
13-
nextCache(callback, keyParts, { revalidate: 60 * 60, ...options }),
13+
nextCache(callback, keyParts, { revalidate: 5 * 60, ...options }), // simulate "use cache" default behavior
1414
);

0 commit comments

Comments
 (0)