Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants