[wp-trac] [WordPress Trac] #63748: site helth status - cache
WordPress Trac
noreply at wordpress.org
Thu Dec 4 20:33:23 UTC 2025
#63748: site helth status - cache
-----------------------------+------------------------------
Reporter: vincentbreton | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 6.8.2
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-----------------------------+------------------------------
Comment (by akshat2802):
Replying to [comment:1 dannythedog]:
>
> This setup follows the official performance documentation for server-
side caching (Nginx FastCGI cache), but the Site Health check still looks
βredβ which is confusing for users.
Agree with you @dannythedog
Sites using Nginx FastCGI cache, Cloudflare CDN, Varnish, or Apache
mod_cache currently show "Page cache is not detected" in Site Health, even
when these caching solutions are properly configured and functioning. This
creates confusion for site administrators who have followed WordPress's
official performance guidance.
Here are some support links:
- https://developer.wordpress.org/advanced-administration/server/web-
server/nginx/#nginx-fastcgi_cache
- https://developer.wordpress.org/advanced-
administration/performance/optimization/#server-side-caching
Here is the PR to add some common headers in core function:
https://github.com/WordPress/wordpress-develop/pull/10598
Also, we have a WP filter that can add custom cache headers that need to
be considered at the time of checking site health. Ref:
https://developer.wordpress.org/reference/hooks/site_status_page_cache_supported_cache_headers/
{{{
add_filter( 'site_status_page_cache_supported_cache_headers', function(
$cache_headers ) {
$cache_headers['x-my-cache-status'] = function( $header_value ) {
return in_array(
strtoupper( $header_value ),
array( 'HIT', 'BYPASS', 'EXPIRED' )
);
};
return $cache_headers;
} );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63748#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list