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.
- Exposes 6 granular checkboxes inside both the Gutenberg Block Editor document sidebar and the Classic Editor meta box (
EditorSettings.php+PostSettings.php). - Compiles
never_cachepost routes intokadicache_editor_routes(PostRouteIndexBuilder.php) synced directly intoearly-config.phpsoEarlyRequestServerbypasses 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 inPostsandPagestables.
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 Label | Flag Key (PostSettings::FLAGS) | Exact Runtime Effect on That Page Only | Other Optimizations Affected? |
|---|---|---|---|
| Never cache this page | never_cache | Excludes the post’s canonical URL (and pagination/amp variants) from HTML Page Caching & Instant Links | All other pages remain cached |
| Disable: Delay JavaScript | delay | Skips Delay Until Interaction on this page so custom inline/embed scripts execute immediately | Page Caching, CSS & Lazyload stay ON |
| Disable: Defer JavaScript | defer | Preserves original synchronous <script> attributes on this page | Page Caching, CSS & Lazyload stay ON |
| Disable: CSS minification | css | Serves unminified local stylesheets on this page | Page Caching, JS & Lazyload stay ON |
| Disable: JavaScript minification | js | Serves unminified local .js files on this page | Page Caching, CSS & Lazyload stay ON |
| Disable: Lazy load (images, backgrounds, iframes and videos) | lazy | Keeps all media, CSS backgrounds, videos & YouTube embeds eager on this page | Page Caching, CSS & JS stay ON |
Notice two thoughtful engineering details built into EditorSettings.php and PostSettings.php:
- Zero Orphan
wp_postmetaBloat: Whenever all 6 checkboxes are unchecked on a post,PostSettings.phpautomatically deletes the_kadicache_page_settingsrow fromwp_postmeta(PostSettings::sanitize($value) === []) so thousands of normal posts never add a single extra row to your database! - 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,PostSettingsautomatically rebuildskadicache_editor_routes, updatesearly-config.php, and purges the old route!
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 nativewp_speculation_rules_href_exclude_pathsfilter (and feedsInstantLinks.php) so any page markednever_cacheis 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:
- 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 nonceCacheActions::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!)
- Inside
WP Admin -> Posts&PagesList 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-delayto the calculator script). Visitors still get14 mscached 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 withX-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?
What happens if I change the URL slug of a page that has Never cache this page enabled?
Who can see and use the KadiCache menu in the WordPress Admin Bar?
Does clicking Clear this page in the Admin Bar wipe my entire site cache?
Do per-page editor checkboxes work with Classic Editor and WooCommerce Products?
Creator of KadiCache’s Early PHP Drop-In, 7-Driver Object Cache Engine, Cloud Remove Unused CSS, and Zero-CLS Lazy Render pipeline.