Unverified Commit 7e8fe870 authored by Jonathan Hefner's avatar Jonathan Hefner Committed by GitHub

Fix `expire` time for `cacheLife('seconds')` (#72190)

### What?

Fix the `expire` time for `cacheLife('seconds')`.

### Why?

The intended `expire` time is 1 minute, but the actual time is 1 second.

### How?

Times are expressed in seconds, so change `1` to `60`.
Co-authored-by: 's avatarZack Tanner <1939140+ztanner@users.noreply.github.com>
parent c479c04e
...@@ -1039,7 +1039,7 @@ export const defaultConfig: NextConfig = { ...@@ -1039,7 +1039,7 @@ export const defaultConfig: NextConfig = {
seconds: { seconds: {
stale: undefined, // defaults to staleTimes.dynamic stale: undefined, // defaults to staleTimes.dynamic
revalidate: 1, // 1 second revalidate: 1, // 1 second
expire: 1, // 1 minute expire: 60, // 1 minute
}, },
minutes: { minutes: {
stale: 60 * 5, // 5 minutes stale: 60 * 5, // 5 minutes
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment