Title: wp_cache_flush_runtime incorrectly called
Last modified: February 22, 2023

---

# wp_cache_flush_runtime incorrectly called

 *  Resolved [DaveWP196](https://wordpress.org/support/users/davewp196/)
 * (@davewp196)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/wp_cache_flush_runtime-incorrectly-called/)
 * Hi
 * In function clear_caches in ActionScheduler_Queue_Runner, there is an unguarded
   call to wp_cache_flush_runtime which triggers repeated errors on installations
   were the object cache does not support flushing the in-memory runtime cache.
 *     ```wp-block-code
       [22-Feb-2023 17:31:37 UTC] PHP Notice:  Function wp_cache_flush_runtime was called <strong>incorrectly</strong>. Your object cache implementation does not support flushing the in-memory runtime cache. Please see <a href="https://wordpress.org/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 6.1.0.) in /var/www/web/wp-includes/functions.php on line 5835
       ```
   

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Barry](https://wordpress.org/support/users/barryhughes-1/)
 * (@barryhughes-1)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/wp_cache_flush_runtime-incorrectly-called/#post-16496585)
 * Thanks for flagging this, [@davewp196](https://wordpress.org/support/users/davewp196/).
   I’ve logged a bug report [over here](https://github.com/woocommerce/action-scheduler/issues/909).

Viewing 1 replies (of 1 total)

The topic ‘wp_cache_flush_runtime incorrectly called’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Barry](https://wordpress.org/support/users/barryhughes-1/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/wp_cache_flush_runtime-incorrectly-called/#post-16496585)
 * Status: resolved