Page cache robustness polish #14

Open
opened 2026-09-13 11:58:42 +00:00 by kevin.bataille · 0 comments
Owner

Small correctness/robustness items for the page cache, bundled:

  • Skip caching responses shorter than 255 bytes (some legacy clients mishandle tiny pages; also avoids caching near-empty error output)
  • Add a wp_recache_override_donotcachepage filter as an escape hatch around the DONOTCACHEPAGE constant (some plugins define it unconditionally)
  • Append an HTML comment footprint (cached timestamp) to cached pages for debuggability
  • Cache search result pages (?s=) while keeping other query strings bypassed
Small correctness/robustness items for the page cache, bundled: - Skip caching responses shorter than 255 bytes (some legacy clients mishandle tiny pages; also avoids caching near-empty error output) - Add a wp_recache_override_donotcachepage filter as an escape hatch around the DONOTCACHEPAGE constant (some plugins define it unconditionally) - Append an HTML comment footprint (cached timestamp) to cached pages for debuggability - Cache search result pages (?s=) while keeping other query strings bypassed
kevin.bataille added the phase-1 label 2026-09-13 11:58:42 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kevin.bataille/wp-recache#14