Documentation Tutorials How to disable “Cache Notice” in admin?

How to disable “Cache Notice” in admin?

If you want to disable that notice in the admin area permanently, use the following filter in your functions.php theme.

add_filter('wp_statistics_cache_status', function ($status) {
    $status['status'] = false;
    return $status;
});