Skip to content

Commit e48f0d1

Browse files
committed
fix: revalidate times from data parameter for fetch entries
1 parent 3c38335 commit e48f0d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/RedisStringsHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ export default class RedisStringsHandler {
467467
// TODO: implement expiration based on cacheControl.expire argument, -> probably relevant for cacheLife and "use cache" etc.: https://nextjs.org/docs/app/api-reference/functions/cacheLife
468468
// Constructing the expire time for the cache entry
469469
const revalidate =
470-
// For fetch requests in newest versions, the revalidate context property never used, and instead the revalidate property of the passed-in data is used
470+
// For fetch requests in newest versions, the revalidate context property is never used, and instead the revalidate property of the passed-in data is used
471471
(data.kind === 'FETCH' && data.revalidate) ||
472472
ctx.revalidate ||
473473
ctx.cacheControl?.revalidate;

0 commit comments

Comments
 (0)