Cache.open object across different data centres

We are using cache.open(name) to save different requests to the same url to different caches within a worker.
However when I try to use the cache clearing api https://support.cloudflare.com/hc/en-us/articles/200169246-Purging-cached-resources-from-Cloudflare#h_fb40387b-d068-4c38-96fc-29d05d35e81e for the original url the cache does not get cleared. Seems like the api above only operates on the cache.default object?

To fix that we tasked the worker to also be responsible for clearing the cache. But since the worker only operates within the confines of the current data centre we can’t invalidate the cache in all data centres.

Is there a solution outside of purchasing an Enterprise plan and use CustomCacheKey feature? Seems odd to expose cache.open methods without the ability to operate across all data centres. Makes clearing the cache effectively impossible as we can fill the cache in multiple data centres as the cache is missed, but then it leaves us with no way of clearing it?

Andrea

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.