I am using Cloudflare’s cache everything page rule, coupled with WP-Rocket. Everything is working great, except, it’s also caching sitemaps. So whenever I update or publish a new post, the sitemaps won’t update.
Whitelisted sitemap in WP-rocket and also set to always purge for sitemap wherever a post is updated or published.
The sitemap still does not update sometimes.
I have used up all the 3 page rules for bypassing the wp-admin and login page.
Is there a way to use Cloudflare Workers to purge the CF cache for a few URLs whenever a post is published and updated?