Title: Object cache flushing
Last modified: April 26, 2023

---

# Object cache flushing

 *  Resolved [michaelcartersa](https://wordpress.org/support/users/michaelcartersa/)
 * (@michaelcartersa)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/object-cache-flushing/)
 * Hi
 * We have a fairly high traffic site and we rely on object-cache to reduce our 
   response times, but I’ve noticed our object cache being flushed repeatedly and
   traced it to this plugin.
 * Luckily we are using objectcache.pro so I could block your flush easily but this
   is really not something that should be happening.
 * It’s happening in the `automatorwp_insert_log()` function (`wp_cache_flush()`)

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

 *  Thread Starter [michaelcartersa](https://wordpress.org/support/users/michaelcartersa/)
 * (@michaelcartersa)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/object-cache-flushing/#post-16690687)
 * Another inefficiency I found is the **`woocommerce_order_tag()`** function that’s
   called at least 10 times by, different woocommerce automator classes, returning
   the exact same response.
 * This could be cached as well and would speed up our pages by 10-15%. You can 
   see the other automator classes are loading much faster, it’s just the woocommerce
   ones that are slow.
 * ![](https://i0.wp.com/i.imgur.com/tVIo1Lb.png?ssl=1)
 *  Plugin Author [Dioni Sánchez](https://wordpress.org/support/users/dioni00/)
 * (@dioni00)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/object-cache-flushing/#post-16691173)
 * Hi [@michaelcartersa](https://wordpress.org/support/users/michaelcartersa/)
 * The cache flush is necessary because if several triggers are launched, AutomatorWP
   needs the cache to be clear for new queries in the logs. This way it can know
   if the user has successfully completed the trigger and the automation.
 * This happens whenever someone launches a trigger and all its requirements are
   met.
 * Best regards
 *  Thread Starter [michaelcartersa](https://wordpress.org/support/users/michaelcartersa/)
 * (@michaelcartersa)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/object-cache-flushing/#post-16693401)
 * I’m not sure how the cache is used, but maybe you could use a custom cache group
   for everything `automatorwp` related, that way you only need to [flush the specific group](https://developer.wordpress.org/reference/functions/wp_cache_flush_group/)..
 *  Plugin Author [Dioni Sánchez](https://wordpress.org/support/users/dioni00/)
 * (@dioni00)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/object-cache-flushing/#post-16694376)
 * Hi [@michaelcartersa](https://wordpress.org/support/users/michaelcartersa/)
 * Thanks for your suggestion.
 * We will consider it to include in future updates.
 * Best regards.

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

The topic ‘Object cache flushing’ is closed to new replies.

 * ![](https://ps.w.org/automatorwp/assets/icon-256x256.png?rev=2271366)
 * [AutomatorWP - Automator plugin for no-code automations, webhooks & custom integrations in WordPress](https://wordpress.org/plugins/automatorwp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/automatorwp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/automatorwp/)
 * [Active Topics](https://wordpress.org/support/plugin/automatorwp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/automatorwp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/automatorwp/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Dioni Sánchez](https://wordpress.org/support/users/dioni00/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/object-cache-flushing/#post-16694376)
 * Status: resolved