Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude by post type to trigger a purge #118

Open
lukecav opened this issue Aug 22, 2017 · 4 comments
Open

Exclude by post type to trigger a purge #118

lukecav opened this issue Aug 22, 2017 · 4 comments

Comments

@lukecav
Copy link

lukecav commented Aug 22, 2017

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
Copy link
Member

tangrufus commented Aug 23, 2017

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
Copy link
Author

lukecav commented Aug 23, 2017

WooCommerce is fine with page rules in Cloudflare.

https://support.cloudflare.com/hc/en-us/articles/236166048-Caching-Static-HTML-with-WordPress-WooCommerce

Bypass Cache on Cookie
wp-.*|wordpress.*|comment_.*|woocommerce_.*

@tangrufus
Copy link
Member

Are you using the USD $ 200 / month plan (or above)?

If so, check out Cloudflare's Railgun as well.

@lukecav
Copy link
Author

lukecav commented Aug 23, 2017

Railgun only works on specific hosts that support it.

https://www.cloudflare.com/docs/railgun/index.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants