Skip to content

Conversation

workers-frameworks
Copy link
Contributor

@workers-frameworks workers-frameworks commented Aug 18, 2025

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@opennextjs/[email protected]

Minor Changes

  • #850 ce5c7b4 Thanks @dario-piotrowicz! - Add option for regional cache to skip tagCache on cache hits

    When the tag regional cache finds a value in the incremental cache, checking such value in the tagCache can be skipped, this helps reducing response times at the tradeoff that the user needs to either use the automatic cache purging or manually purge the cache when appropriate. For this the bypassTagCacheOnCacheHit option is being added to the RegionalCache class.

    Example:

    import { defineCloudflareConfig } from "@opennextjs/cloudflare";
    import d1NextTagCache from "@opennextjs/cloudflare/overrides/tag-cache/d1-next-tag-cache";
    import memoryQueue from "@opennextjs/cloudflare/overrides/queue/memory-queue";
    import r2IncrementalCache from "@opennextjs/cloudflare/overrides/incremental-cache/r2-incremental-cache";
    import { withRegionalCache } from "@opennextjs/cloudflare/overrides/incremental-cache/regional-cache";
    
    export default defineCloudflareConfig({
    	incrementalCache: withRegionalCache(r2IncrementalCache, {
    		mode: "long-lived",
    		bypassTagCacheOnCacheHit: true,
    	}),
    	tagCache: d1NextTagCache,
    	queue: memoryQueue,
    });

Patch Changes

Copy link

pkg-pr-new bot commented Aug 18, 2025

Open in StackBlitz

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

commit: f18de0f

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.

1 participant