How to Disable WP Site Health Cache Checks
-
Good Day,
Starting with WordPress 6.1, Site Health performs two new cache checks:
(1) Full Page Caching
(2) Object Caching (Memcached)Since our website performs better without Memcached, thought we’d share (see below) two code snippets that will disable the above cache checks and respective notifications when Full Page Cache and/or Object Cache (Memcached) are not present or disabled.
We welcome comments from the SiteGround Team on this.
Thank you!
—————————-
Code Snippets:
function disable_full_page_cache_check( $tests ) { unset( $tests['async']['page_cache'] ); return $tests; } add_filter( 'site_status_tests', 'disable_full_page_cache_check' );
function disable_object_cache_check( $tests ) { unset( $tests['direct']['persistent_object_cache'] ); return $tests; } add_filter( 'site_status_tests', 'disable_object_cache_check' );
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to Disable WP Site Health Cache Checks’ is closed to new replies.