Seravo / wordpress

The WordPress project layout used by many of Seravo's customers, suitable also for local development with Vagrant and git deployment
https://seravo.com
GNU General Public License v3.0
102 stars 54 forks source link

Object cache implementation does not support flushing the in-memory runtime cache #201

Closed mikkosiikaniemi closed 1 year ago

mikkosiikaniemi commented 1 year ago

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.