Title: Numerous PHP warnings
Last modified: November 4, 2022

---

# Numerous PHP warnings

 *  Resolved [verysiberian](https://wordpress.org/support/users/verysiberian/)
 * (@verysiberian)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/numerous-php-warnings/)
 * Hello,
 * Thank you for this excellent plugin. After installing and configuring it, I needed
   to enable debugging and logging for an unrelated reason. In reviewing the debug.
   log contents, though, I am seeing numerous messages like the following one:
 * [04-Nov-2022 21:31:27 UTC] PHP Notice: Function wp_cache_flush_runtime was called**
   incorrectly**. Your object cache implementation does not support flushing the
   in-memory runtime cache. Please see [Debugging in WordPress](https://wordpress.org/support/article/debugging-in-wordpress/)
   for more information. (This message was added in version 6.1.0.) in /var/www/
   wordpress/wp-includes/functions.php on line 5835
 * I have tried setting the object cache to both Disk and Memcached options, but
   the PHP notices continue to pile up. Suggestions would be appreciated!
 * Thanks,
    Very Siberian

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

 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/numerous-php-warnings/#post-16172720)
 * Hello [@verysiberian](https://wordpress.org/support/users/verysiberian/)
 * Thank you for reaching out.
    Let me try to replicate this on WP 6.1 using Memcached
   and I’ll get back to you. Thanks!
 *  [Jamie Burchell](https://wordpress.org/support/users/jamieburchell/)
 * (@jamieburchell)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/numerous-php-warnings/#post-16187455)
 * I see this, coming from Rank Math?
 *     ```
       [10-Nov-2022 06:23:19 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/wp-includes/functions.php on line 5835
       [10-Nov-2022 06:23:19 UTC] PHP Stack trace:
       [10-Nov-2022 06:23:19 UTC] PHP   1. {main}() /var/www/web/wp/wp-cron.php:0
       [10-Nov-2022 06:23:19 UTC] PHP   2. do_action_ref_array($hook_name = 'action_scheduler_run_queue', $args = [0 => 'WP Cron']) /var/www/web/wp/wp-cron.php:188
       [10-Nov-2022 06:23:19 UTC] PHP   3. WP_Hook->do_action($args = [0 => 'WP Cron']) /var/www/web/wp/wp-includes/plugin.php:565
       [10-Nov-2022 06:23:19 UTC] PHP   4. WP_Hook->apply_filters($value = '', $args = [0 => 'WP Cron']) /var/www/web/wp/wp-includes/class-wp-hook.php:332
       [10-Nov-2022 06:23:19 UTC] PHP   5. ActionScheduler_QueueRunner->run($context = 'WP Cron') /var/www/web/wp/wp-includes/class-wp-hook.php:308
       [10-Nov-2022 06:23:19 UTC] PHP   6. ActionScheduler_QueueRunner->do_batch($size = 25, $context = 'WP Cron') /var/www/web/app/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/ActionScheduler_QueueRunner.php:132
       [10-Nov-2022 06:23:19 UTC] PHP   7. ActionScheduler_QueueRunner->clear_caches() /var/www/web/app/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/ActionScheduler_QueueRunner.php:171
       [10-Nov-2022 06:23:19 UTC] PHP   8. wp_cache_flush_runtime() /var/www/web/app/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/ActionScheduler_QueueRunner.php:187
       [10-Nov-2022 06:23:19 UTC] PHP   9. _doing_it_wrong($function = 'wp_cache_flush_runtime', $message = 'Your object cache implementation does not support flushing the in-memory runtime cache.', $version = '6.1.0') /var/www/web/wp/wp-includes/cache-compat.php:145
       [10-Nov-2022 06:23:19 UTC] PHP  10. trigger_error($message = '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.)', $error_level = 1024) /var/www/web/wp/wp-includes/functions.php:5835
       ```
   
 *  [giggles420](https://wordpress.org/support/users/gigglesslut420/)
 * (@gigglesslut420)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/numerous-php-warnings/#post-16300325)
 * I have the same issue with object cache using memcached, WP 6.1.
   I thought it
   was coming from Imagify because the imagify plugin and W3 Total Cache were updated
   at the same time, but Imagify’s support pointed to this Github issue which they
   think is related:“It looks like this is coming from action scheduler usage of`
   wp_cache_flush_runtime()` function, and W3TC does not explicitly declare support
   for it with `wp_cache_supports()`. This change happened in v6.0 and v6.1 of WP.
   You can check [this GitHub Issue](https://github.com/W3EDGE/w3-total-cache/issues/584)
   for further information.”[https://github.com/W3EDGE/w3-total-cache/issues/584](https://github.com/W3EDGE/w3-total-cache/issues/584)

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

The topic ‘Numerous PHP warnings’ is closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

 * 3 replies
 * 4 participants
 * Last reply from: [giggles420](https://wordpress.org/support/users/gigglesslut420/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/numerous-php-warnings/#post-16300325)
 * Status: resolved