Before submitting an issue please check that you’ve completed the following steps:
Made sure you’re on the latest version - 3.11.5
Used the search feature to ensure that the bug hasn’t been reported before - yes
Describe the bug
When Cloudflare Cache Everything is activated via page rules, our Cloudflare add-on doesn't clear cache when a user with Author or Editor user role edits or publishes a post.
Before submitting an issue please check that you’ve completed the following steps:
Describe the bug When Cloudflare Cache Everything is activated via page rules, our Cloudflare add-on doesn't clear cache when a user with
Author
orEditor
user role edits or publishes a post.The condition is set on this line: https://github.com/wp-media/wp-rocket/blob/088246e67df6a0b54f1e94588584412ef0f9b6dc/inc/Addon/Cloudflare/Subscriber.php#L174 and it prevents code to run further.
To Reproduce Steps to reproduce the behavior:
Expected behavior Cache for posts and related URLs should be cleared when a post is published or edited by any users as done for WP Rocket cache.
Additional context Slack thread: https://wp-media.slack.com/archives/C43T1AYMQ/p1660047435095269 Ticket: https://secure.helpscout.net/conversation/1967812788/359694?folderId=3864740
Backlog Grooming (for WP Media dev team use only)