Object cache implementation does not support flushing the in-memory runtime cache
mikkosiikaniemi opened this issue · 0 comments
mikkosiikaniemi commented
PHP error log is getting many rows like this:
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 /data/wordpress/htdocs/wordpress/wp-includes/functions.php on line 5835
I was able to silence the messages by modifying /htdocs/wp-content/object-cache.php
like suggested in somewhat related support thread.
function wp_cache_supports( $feature ) {
if ( $feature === 'flush_runtime' ) {
return true;
}
return false;
}
Originally discovered using WordPress core version 6.1.1, seems to reproduce also with 6.2.