• Resolved Generosus

    (@generosus)


    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)
  • Plugin Support Plamen M

    (@plamenm)

    Hello @generosus,

    The provided snippets look okay. You can use them for your needs.

    Regards,
    Plamen.M
    Tech Support Team
    SiteGround.com

    Thread Starter Generosus

    (@generosus)

    Hey @plamenm,

    Thanks for the feedback ??

    Yep, using them already. Hoping this will help others as well.

    Again, thank you.

    Thread Starter Generosus

    (@generosus)

    Update:

    To those reading this topic, we’ve decided to disable the above code snippets for now and leave Memcached enabled. We will re-enable the above code snippets when necessary.

    Cheerio!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to Disable WP Site Health Cache Checks’ is closed to new replies.