Skip to content
This repository has been archived by the owner on Feb 17, 2023. It is now read-only.

[Question] How to purge cache once new version of site is released? #59

Closed
Tkach7 opened this issue Nov 12, 2020 · 0 comments
Closed

[Question] How to purge cache once new version of site is released? #59

Tkach7 opened this issue Nov 12, 2020 · 0 comments

Comments

@Tkach7
Copy link

Tkach7 commented Nov 12, 2020

First of all, thanks guys for amazing work! Edge caching process works very well as a result performance of pages was improved!
So, Edge caching was set up by this example https://github.com/cloudflare/worker-examples/tree/master/examples/edge-cache-html.

Problem

The problem is that once a new version for the site is released, cache should be purged.

Question

The question is how to purge cache which is stored in KV via API. It is clear how to reset it via api by zone, but there are no ideas how to do it for KV space.

Upd
So, i found the solution, to be able to purge cache via api, we can use api for purging cache by tags

@Tkach7 Tkach7 closed this as completed Nov 16, 2020
lukeed pushed a commit that referenced this issue Apr 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant