/wordpress:clear-cachefrom wordpress
Clear a CADE domain's WordPress page caches through the site's own cache plugins (LiteSpeed, WP Rocket, W3 Total Cache, WP Super Cache, Breeze, Cache Enabler, WP Fastest Cache, SiteGround Optimizer, Autoptimize) - one page after a change, or the whole site after a site-wide change - then check the page as a visitor gets it, and name the cache when one the site cannot reach still holds the old page. Reads for every operator; clears for cade-mcp admins, after the person's yes. Use for "clear the cache on {domain}", "my change isn't showing on {domain}", "purge the about page", "the site still shows the old title", "which cache plugin does {domain} run".
Ships in wordpress. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Load the manage skill first. It finds the site's connection ({wp} below), and its write steps apply here: show the change, wait for a clear yes, send once, check.
The site's plugin answers seo-toolkit/cache. It calls each cache plugin's own hook or function and never deletes files itself.
Clear only when one of these is true:
A clear with no changed page behind it does nothing useful and leaves every visitor a slower first load.
Check from outside first. Fetch the page's address as it is, and again with ?v= and a new number (&v= when the address already has a query, and always before any #). New with ?v= but old without: a cache holds the old page. Old in both: the change itself did not take, so go back to manage and read the item.
Read the layers: api_get("{wp}/seo-toolkit/cache") answers layers (the cache plugins found), clear_all_wait_seconds and not_cleared. An empty layers means no cache plugin the route knows: go to step 6.
Choose the smallest scope:
{"scope": "post", "id": 412}. Find the id with api_get("{wp}/pages", {"search": "about", "_fields": "id,link"}), or posts;{"scope": "url", "url": "https://{domain}/blog/"};{"scope": "all"}: only after a change that reaches every page, at most once every 10 minutes.Show it and wait for a yes: the site, the scope, the layers that will clear, the ones that will answer skipped (Breeze cannot clear one address; Autoptimize keeps CSS and JS, not pages, and clears only with all), and what no plugin reaches (not_cleared).
Send it once:
api_write("POST", "{wp}/seo-toolkit/cache", confirm_path="{wp}/seo-toolkit/cache",
body={"confirm_route": "seo-toolkit/cache", "body": {"scope": "post", "id": 412}})
Report each layer's result. WP Fastest Cache and Breeze also clear the post's archives and the home page; that is their own choice, not a whole-site clear.
Check from outside again, without ?v=. New: done. Still old: a cache the route cannot reach holds it. With a shell, curl -sI '{address}' shows which:
| The answer's headers show | Likely cache | What the person can do |
|---|---|---|
cf-cache-status: HIT | Cloudflare | Purge the address in Cloudflare, or install Cloudflare's WordPress plugin |
x-sucuri-cache: HIT | Sucuri firewall | Clear the cache in the Sucuri dashboard |
x-litespeed-cache: hit, and no litespeed in layers | LiteSpeed server without its plugin | Purge in the host panel, or install LiteSpeed Cache |
age above 0 or x-cache: HIT, none of the above | A host cache (Kinsta, WP Engine, Flywheel, SiteGround, Varnish) | Purge it in the host's panel |
| none of these | A cache that does not name itself | Say the cache is unknown; ask which host and CDN serve the site, and purge there |
The plugin's refusals come back in data, with body {"error": ..., "code": ...}:
code | Means, and next step |
|---|---|
clear_all_too_soon (data.status 429) | The whole site was cleared less than 10 minutes ago. Clear the one page instead, or wait the seconds the message names |
invalid_url | The url must be a full address on this site |
post_not_found | No post has that id: look it up again |
CADE's own PLUGIN_ROUTE_MISSING means the site's plugin predates the route: update it as manage says. Other CADE codes are in manage.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
3 skills in this plugin
/fix-site-healthFix a CADE domain's SEO audit (Site health) findings on its WordPress site - read the latest run, sort each finding into what a WordPress write can fix and what needs a person, then fix one finding at a time after the person's yes, record each change with the finding it fixes, and offer a new crawl and audit to confirm. Reads for every operator; writes for cade-mcp admins. Use for "fix the site health of {domain}", "fix the audit findings on {domain}", "what can you fix from the audit", "fix the titles the audit flagged", "were my fixes confirmed"./manageManage a CADE domain's WordPress site through its stored connection - read and change posts, pages, media (with image, PDF and video uploads), menus, categories, comments, widgets, templates and settings, site-wide CSS on any theme, Elementor pages and templates, and the address the FAQ pages sit under, and where the site's access level allows it, users, plugins and themes. Reads are open to every operator; writes are for cade-mcp admins and are shown to the person and sent only after their yes. Use for "edit the about page on {domain}", "add a link to the menu on {domain}", "add this CSS to every page of {domain}", "fix the blog template spacing", "change the heading on the Elementor home page", "edit the Elementor footer", "move the FAQs on {domain} to /faq/", "which plugins are active on {domain}", "restore the previous version of a post", "upload this image to {domain}".npx claudepluginhub blackwoodproductions/bwp-tools --plugin wordpress