Exclude by post type to trigger a purge
lukecav opened this issue · 4 comments
lukecav commented
Currently when a new order is created in WooCommerce, since an order is a custom post type, that will trigger a purge in Cloudflare.
Provide an option to be able to exclude certain post types from causing a purge trigger.
tangrufus commented
Good feature to add.
For now, you can only remove Sunny
from these 2 filters:
transition_post_status
edit_post
However, using WooCommerce with Cloudflare cache everything
rules usually not a good idea.
lukecav commented
WooCommerce is fine with page rules in Cloudflare.
Bypass Cache on Cookie
wp-.*|wordpress.*|comment_.*|woocommerce_.*
tangrufus commented
Are you using the USD $ 200 / month plan (or above)?
If so, check out Cloudflare's Railgun as well.
lukecav commented
Railgun only works on specific hosts that support it.