File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
packages/open-next/src/utils Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @opennextjs/aws " : patch
3
+ ---
4
+
5
+ fix: bypass next tag cache when there are no tags to check
Original file line number Diff line number Diff line change @@ -23,7 +23,9 @@ export async function hasBeenRevalidated(
23
23
}
24
24
const lastModified = cacheEntry . lastModified ?? Date . now ( ) ;
25
25
if ( globalThis . tagCache . mode === "nextMode" ) {
26
- return await globalThis . tagCache . hasBeenRevalidated ( tags , lastModified ) ;
26
+ return tags . length === 0
27
+ ? false
28
+ : await globalThis . tagCache . hasBeenRevalidated ( tags , lastModified ) ;
27
29
}
28
30
// TODO: refactor this, we should introduce a new method in the tagCache interface so that both implementations use hasBeenRevalidated
29
31
const _lastModified = await globalThis . tagCache . getLastModified (
You can’t perform that action at this time.
0 commit comments