Skip to content

Commit a3e0889

Browse files
committed
review fix
1 parent b4e39dd commit a3e0889

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.changeset/great-carrots-hammer.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@opennextjs/cloudflare": patch
3+
---
4+
5+
Fix regional cache for the DOShardedTagCache

packages/cloudflare/src/api/overrides/tag-cache/do-sharded-tag-cache.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,9 @@ class ShardedDOTagCache implements NextModeTagCache {
306306
return Math.max(...cachedValue.map((item) => item.time));
307307
}
308308
// Otherwise we need to check the durable object on the ones that were not found in the cache
309-
const filteredTags = tags.filter((tag) => !cachedValue.some((item) => item.tag === tag));
309+
const filteredTags = deduplicatedTags.filter(
310+
(tag) => !cachedValue.some((item) => item.tag === tag)
311+
);
310312

311313
const stub = this.getDurableObjectStub(doId);
312314
const lastRevalidated = await stub.getLastRevalidated(filteredTags);

0 commit comments

Comments
 (0)