Skip to content

Conversation

vicb
Copy link
Contributor

@vicb vicb commented Sep 9, 2025

Syncing the Cache API on hits is not required when cache purge is enabled (they is no risk of having a cache hit if the cache API is not in sync with R2 in this case as updated entries are purged).

The change reduces the numbers of R2 reads when cache purge is enabled.

The PR also documentation/recommendation about the regional cache usage.

Copy link

changeset-bot bot commented Sep 9, 2025

🦋 Changeset detected

Latest commit: b483056

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@opennextjs/cloudflare Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

pkg-pr-new bot commented Sep 9, 2025

Open in StackBlitz

npm i https://pkg.pr.new/@opennextjs/cloudflare@882

commit: b483056

@vicb
Copy link
Contributor Author

vicb commented Sep 9, 2025

Thanks for the review Nico!

@vicb vicb merged commit a6283af into main Sep 9, 2025
7 of 8 checks passed
@vicb vicb deleted the vicb/skip-lazy branch September 9, 2025 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants