Yes you may clear entire cache of application using “breeze_clear_all_cache”.
While update/edit post internal cache purge by Breeze to show the latest changes.
Are you saying there is no way to purge the cache programmatically for just a single post?
Yes, Breeze not offer to purge single post.
No, I did not find a solution and had to use the purse all cache which I’m not pleased about since it’s terrible for performance when all I need to purge is a single post.
Does the cache of that single post get purged if you edit, or just save it?
When updating a single post, Breeze purges the cache only for relevant post/page, not for the entire site. Clicking ‘Purge All Cache’ will clear the cache for the entire site.
Dear Adeel Khan and the Breeze Support Team,
I hope this message finds you well. I am currently working with the Breeze caching plugin and I have encountered a specific requirement that I believe may need your expert guidance.
My objective is to programmatically clear the cache for individual posts by their Post ID. I am looking for a way to integrate this functionality directly into the Breeze plugin’s source code. I understand that modifying the plugin’s core files is not typically recommended, but this feature is crucial for my current project.
Could you kindly provide me with guidance on what modifications can be made to the plugin’s source code to achieve this functionality? Alternatively, if there is an existing hook or function within Breeze that I could utilize for this purpose, that information would be incredibly helpful.
Your expertise and advice on this matter would be greatly appreciated. Thank you in advance for your time and assistance.
Best regards,
Could you please provide more details on your request to purge the cache? Specifically, we would like clarification on whether you want to purge the cache not only in the general context but also specifically for Custom Post Types (CPT), tags, and taxonomies. Your elaboration on this matter would be greatly appreciated.
In my case, it is for purging the cache of custom post types. For example, when a specific action occurs on the site I need to set up logic where it dynamically purges the cache for one or more individual posts in a custom post type.
In W3 Total Cache, you do this by using
w3tc_flush_post($post_id)
In WP Super Cache, you do this by using
wpsc_delete_post_cache($post_id)
In WP-Optimize, you do this by using
WPO_Page_Cache::delete_single_post_cache($post_id)
In LiteSpeed Cache, you do this by using
do_action('litespeed_purge_post', $post_id)
In WP Fastest Cache, you do this by using
wpfc_clear_post_cache_by_id($post_id)
We need to be able to purge custom post type cache for Woocommerce Products after importing new data through CLI. In this case a purge cache per post ID would be required.