Closed A5hleyRich closed 7 years ago
In some situations it would be useful to exclude certain post types from triggering a cache purge. For example, WooCommerce uses the shop_order post type and we don't want the front-end of the site to be purged when new orders are created.
shop_order
add_filter( 'nginx_cache_excluded_post_types', function() { return array( 'shop_order' ); } );
Awesome @A5hleyRich - much needed!
@tillkruss any news on a plugin update for this?
In some situations it would be useful to exclude certain post types from triggering a cache purge. For example, WooCommerce uses the
shop_order
post type and we don't want the front-end of the site to be purged when new orders are created.