Title: Cache empty on post updates exclusions
Last modified: September 18, 2024

---

# Cache empty on post updates exclusions

 *  Resolved [Armands](https://wordpress.org/support/users/armandsdz/)
 * (@armandsdz)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/cache-empty-on-post-updates-exclusions/)
 * Hi!
 * Is it possible to somehow configure the behavior of automatic cache purge on 
   post edit/update/insert?
 * Looking at the code I don’t see any option to do so. There I only see that tribe_events
   and shop_orders post types are excluded but no option to add anything else or
   perhaps to turn off the feature completely.
 * We just had a situation where we had REST API Log active and every 15minutes 
   external resource is checking for new orders via API. Each request is being logged
   and each log like that creates a new post. That causes Breeze cache to empty.
   That happens every 15 minutes therefore.
 * Perhaps can add some filters to be able to hook into the excluded post types 
   or even add some section in options about this?
 * Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [owaisalam](https://wordpress.org/support/users/owaisalam/)
 * (@owaisalam)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/cache-empty-on-post-updates-exclusions/#post-18033216)
 * I hope you’re doing well. Could you please share the structure of the log request
   that creates a new post? Having this information would be very helpful for implementing
   the required scenario.
 *  Thread Starter [Armands](https://wordpress.org/support/users/armandsdz/)
 * (@armandsdz)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/cache-empty-on-post-updates-exclusions/#post-18034253)
 * You can check it out here:
   [https://wordpress.org/plugins/wp-rest-api-log/](https://wordpress.org/plugins/wp-rest-api-log/)
 * Basically, the plugin logs REST API requests by creating a post of type “wp-rest-
   api-log” for each request it tracks. While hardcoding an exception for this specific
   post type would be a good start, it’d be even better if we could make this configurable
   through a filter or a simple GUI.
 * There are plenty of cases where some post types (like internal posts) don’t affect
   the front-end, so flushing the cache isn’t always necessary. Giving users more
   control over when a cache flush happens could avoid unnecessary performance hits.
 * Thanks!
 *  Plugin Author [owaisalam](https://wordpress.org/support/users/owaisalam/)
 * (@owaisalam)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/cache-empty-on-post-updates-exclusions/#post-18047178)
 * Thank you for your feedback. We will research the suggestion, and if it fits 
   well with our structure, we will definitely include it in future releases.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Cache empty on post updates exclusions’ is closed to new replies.

 * ![](https://ps.w.org/breeze/assets/icon-256x256.gif?rev=3352595)
 * [Breeze Cache](https://wordpress.org/plugins/breeze/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/breeze/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/breeze/)
 * [Active Topics](https://wordpress.org/support/plugin/breeze/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/breeze/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/breeze/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [owaisalam](https://wordpress.org/support/users/owaisalam/)
 * Last activity: [1 year, 8 months ago](https://wordpress.org/support/topic/cache-empty-on-post-updates-exclusions/#post-18047178)
 * Status: resolved