You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version 6.6.0: Batcache check names what blocks caching
From a support ticket where the cache was dead for two reasons the
check could not name: WP_CACHE false in wp-config.php and a page cache
plugin sending "Cache-Control: no-store, s-maxage=0".
- Runtime trace (batcache_trace.php): when the homepage is not cached,
one traced request places a check after every hook callback and
reports the plugin/theme, file:line, function and hook behind each
Set-Cookie header, blocking Cache-Control header or
batcache_cancel() call. Covers plugin-load time and output-buffer
callbacks. One-time token in a wp_ cookie: the request skips the
edge and Batcache and is never cached; other requests return at the
first line of the file.
- Code search fallback (batcache_diagnose.php) for cookies the trace
cannot attribute: active plugins, theme, mu-plugins; 4 s cap, 1 h
cache.
- New statuses: "Caching Blocked by a Header" and "Batcache Switched
Off" (WP_CACHE / drop-in / max_age, read from the visitor request
because the platform forces WP_CACHE off for staff admin sessions).
Third-party page cache plugins are listed.
- Accuracy: Batcache-Set or a same-second Batcache-Hit with max-age=0
no longer counts as active; the badge showed Active on sites where
nothing was cached. Warning when Batcache works but a header blocks
Edge Cache.
- Less load: the page renders from the stored result and only asks the
server when it is missing or stale (30 min active, 5 min otherwise),
after a flush or plugin/theme change, or on refresh.
- Tooltip rewritten.
Tested on api-clon-test with a throwaway blocker plugin: first-visit
cookie, per-request cookie with a dynamic name, PHP session, no-store
header on a hook, no-store header from an output buffer,
batcache_cancel(), cookie set at plugin load. Local check of the code
search, config rules and alert rendering (24 cases).
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>