Skip to main content
KadiCache
Browse 37 Docs Guides & Search

Per-Page Exclusions in Gutenberg, Classic Editor & Admin Bar

Bypass caching, Delay JS, Defer JS, minification, or Lazyload on individual posts and WooCommerce products from the Block Editor sidebar and clear single URLs from the Admin Bar.

Admin/EditorSettings.phpConfiguration/PostSettings.phpConfiguration/Editor/PostRouteIndexBuilder.phpAdmin/CacheActions.php
WP Admin -> KadiCache -> Page Cache (404, Commenters & Edge Validators)
MODULE 04 · 2X RETINA
Consolidated route exclusions, 404/commenter caching, HTTP 304 ETag validators, and edge s-maxage controls in one tab.2880×1840 WebP
Quick Summary · 30-Second Operational SpecSource-Verified Guide
WP Admin Path
Gutenberg Sidebar -> KadiCache | Frontend Admin Bar -> KadiCache
Expected Outcome
6 Granular Per-Post Flags · Pre-WordPress Early Route Index
Key Marker / Engine
_kadicache_page_settings | kadicache_editor_routes
  • Exposes 6 granular checkboxes inside both the Gutenberg Block Editor document sidebar and the Classic Editor meta box (EditorSettings.php + PostSettings.php).
  • Compiles never_cache post routes into kadicache_editor_routes (PostRouteIndexBuilder.php) synced directly into early-config.php so EarlyRequestServer bypasses excluded pages before WordPress loads.
  • Applies per-page settings only to the edited language translation (EditorSettings::translationNote()) on multilingual WPML, Polylang, and TranslatePress sites.
  • Adds 1-click Clear this page and Clear all cache actions in the frontend WordPress Admin Bar (CacheActions.php), plus Clear cache row links in Posts and Pages tables.

Why Editors Need Per-Page Controls Without Editing Global Regex Rules#

In day-to-day publishing and e-commerce campaigns, marketing managers and content editors frequently launch one special landing page—an embedded ROI calculator, a live webinar countdown stream, a custom third-party form embed, or a seasonal lookbook—that needs a slight optimization adjustment without touching global settings in WP Admin -> KadiCache.

Asking editors to write path wildcards inside global settings creates unnecessary risk and breaks automatically if an author later changes the post’s URL slug! KadiCache solves this cleanly through ID-tracked per-post optimization rules (EditorSettings.php & PostSettings.php) paired with 1-click Admin Bar & Post Table actions (CacheActions.php).

All 6 Per-Page Checkboxes in Gutenberg & Classic Editor (EditorSettings.php)#

Open any public Post, Page, WooCommerce Product, or public Custom Post Type in either the Gutenberg Block Editor (Post settings sidebar -> KadiCache · Page Optimization Rules) or the Classic Editor (KadiCache side meta box). Both editors read and save the exact same protected post meta key (_kadicache_page_settings, PostSettings::META) with 6 independent checkboxes:

Per-Page Checkbox LabelFlag Key (PostSettings::FLAGS)Exact Runtime Effect on That Page OnlyOther Optimizations Affected?
Never cache this pagenever_cacheExcludes the post’s canonical URL (and pagination/amp variants) from HTML Page Caching & Instant LinksAll other pages remain cached
Disable: Delay JavaScriptdelaySkips Delay Until Interaction on this page so custom inline/embed scripts execute immediatelyPage Caching, CSS & Lazyload stay ON
Disable: Defer JavaScriptdeferPreserves original synchronous <script> attributes on this pagePage Caching, CSS & Lazyload stay ON
Disable: CSS minificationcssServes unminified local stylesheets on this pagePage Caching, JS & Lazyload stay ON
Disable: JavaScript minificationjsServes unminified local .js files on this pagePage Caching, CSS & Lazyload stay ON
Disable: Lazy load (images, backgrounds, iframes and videos)lazyKeeps all media, CSS backgrounds, videos & YouTube embeds eager on this pagePage Caching, CSS & JS stay ON

Notice two thoughtful engineering details built into EditorSettings.php and PostSettings.php:

  1. Zero Orphan wp_postmeta Bloat: Whenever all 6 checkboxes are unchecked on a post, PostSettings.php automatically deletes the _kadicache_page_settings row from wp_postmeta (PostSettings::sanitize($value) === []) so thousands of normal posts never add a single extra row to your database!
  2. Automatic Permalink Slug Tracking (PostRouteIndexBuilder.php): Because rules are attached to the WordPress Post ID rather than a hardcoded string, if an editor renames /summer-promo/ to /autumn-promo/, moves its parent page, or trashes/untrashes the post, PostSettings automatically rebuilds kadicache_editor_routes, updates early-config.php, and purges the old route!
FIG 01Combining per-page editor rules with wildcard Excluded URL Paths inside WP Admin -> KadiCache -> CacheZoom 2x

Multilingual Precision & Speculation Rules Integration#

  • Per-Translation Isolation (EditorSettings::translationNote()): When WPML, Polylang, TranslatePress, or any of KadiCache’s 8 supported multilingual providers is active, the editor panel displays "This setting applies to this translation only." Checking Never cache this page on /de/kontakt-formular/ bypasses only that German page while /en/contact-form/ and /fr/formulaire/ remain cached at full speed.
  • Automatic Speculation Rules Exclusion: PostSettings::register() hooks WordPress’s native wp_speculation_rules_href_exclude_paths filter (and feeds InstantLinks.php) so any page marked never_cache is never prefetched on hover by guest browsers.

Frontend WordPress Admin Bar & Post List Actions (CacheActions.php)#

When logged in with manage_options capability (or manage_network_options in Network Admin), CacheActions.php gives you instant surgical cache controls everywhere you work:

  1. While Viewing Any Live Public URL on the Frontend (Admin Bar -> KadiCache):
  • Clear this page (kadicache_purge_page): Purges only the exact URL currently open in your browser (authenticated with a URL-bound nonce CacheActions::urlNonce($url)) and displays instant confirmation right in the toolbar (KadiCache: cache cleared)—leaving the rest of your warm site cache untouched!
  • Clear all cache (kadicache_toolbar_purge_all): Purges the current site’s page cache cleanly in one click.
  • (When Cloud Pro is active, the frontend Admin Bar menu also surfaces 1-click per-page toggles to use original CSS or exclude that page from Improve LCP, Layout Stability, or Lazy Render!)
  1. Inside WP Admin -> Posts & Pages List Tables (rowAction): Hover over any published post or page row and click Clear cache (kadicache_purge_post) to invalidate that post’s URL and its associated archive targets without purging the whole site.

Real-World Examples: Which Checkbox Solves Which Page Issue?#

Instead of turning off Never cache this page whenever a third-party widget misbehaves on one landing page, target the exact optimization layer so the page still serves from ~14 ms Early Cache:

  • Embedded Mortgage, Solar, or Pricing Calculator Stops Updating Live Totals: Keep HTML caching ON, and check only Disable: Delay JavaScript on that page (or add data-kadicache-no-delay to the calculator script). Visitors still get 14 ms cached HTML while the calculator runs immediately.
  • Interactive SVG Floorplan or Before/After Photo Slider Jumps on Load: Keep HTML caching and JS optimizations ON, and check Disable: Lazy load on that single showcase page so all comparison frames load eagerly.
  • Time-Sensitive Private Webhook or Tokenized Quote Page (/quote-status/): Check Never cache this page (never_cache) so every visit executes live PHP with X-KadiCache: BYPASS (excluded_path) and is excluded from hover prefetching.

Frequently Asked Operational Questions

If I check Disable Delay JavaScript on one landing page, does that page still get cached?
Yes! All 5 optimization checkboxes under "Disable for this page:" (Delay JS, Defer JS, CSS minification, JS minification, and Lazy load) leave HTML Page Caching and Early Delivery 100% active on that page.
What happens if I change the URL slug of a page that has Never cache this page enabled?
Because KadiCache stores the rule on the post’s ID (_kadicache_page_settings) and compiles paths dynamically via PostRouteIndexBuilder.php, renaming the slug updates early-config.php automatically—you never have to edit URL lists manually.
Who can see and use the KadiCache menu in the WordPress Admin Bar?
CacheActions.php checks current_user_can("manage_options") on single sites (and manage_network_options inside Multisite Network Admin), so subscribers, customers, and contributors never see cache purge controls.
Does clicking Clear this page in the Admin Bar wipe my entire site cache?
No. Clear this page invalidates only the current URL you are viewing on the frontend, keeping all other cached pages, products, and categories warm.
Do per-page editor checkboxes work with Classic Editor and WooCommerce Products?
Yes! EditorSettings.php registers both the native Gutenberg Block Editor sidebar panel and a standard Classic Editor side meta box across all public, viewable post types including WooCommerce products.
Gergis — Lead Systems & Cache Architect
Principal WordPress & Cloud Edge Architect
E-E-A-T Source Verified

Creator of KadiCache’s Early PHP Drop-In, 7-Driver Object Cache Engine, Cloud Remove Unused CSS, and Zero-CLS Lazy Render pipeline.

apps/wordpress-plugin/src/Admin/EditorSettings.phpapps/wordpress-plugin/src/Configuration/PostSettings.phpapps/wordpress-plugin/src/Configuration/Editor/PostRouteIndexBuilder.phpapps/wordpress-plugin/src/Admin/CacheActions.php
Was this engineering guide helpful?