Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Cache Invalidation by Tag #91

Open
Gwemox opened this issue Oct 11, 2024 · 0 comments
Open

Support for Cache Invalidation by Tag #91

Gwemox opened this issue Oct 11, 2024 · 0 comments
Labels
enhancement New feature or request planned

Comments

@Gwemox
Copy link

Gwemox commented Oct 11, 2024

Description

It appears that @opennextjs/cloudflare does not support cache invalidation by tag. Currently, fetch places cache data in a Cloudflare KV store (NEXT_CACHE_WORKERS_KV). However, calling tag-based invalidation through @next/cache does not seem to work as expected.

Context and Need

In environments with frequently updated or dynamic content, precise cache control is essential. Using tag-based cache invalidation would allow for targeted, granular cache management, reducing the need for global purges and improving overall performance.

Request

Please add support for cache invalidation by tag.

Expected Benefits

  • Improved performance by avoiding full cache purges.
  • Granular control over cached content for end-users.
  • Enhanced cache management for dynamic content projects with frequent updates.

Thank you for considering this enhancement! I’d be happy to provide additional information or discuss this feature in detail.

@vicb vicb added enhancement New feature or request planned labels Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request planned
Projects
None yet
Development

No branches or pull requests

2 participants