Governed ability
Purge the whole page cache
aafm/site-purge-site-cacheGuarded write
Purge the whole page cache is a governed Page cache ability in Agent Abilities for MCP, a free WordPress plugin that runs an MCP server on your site.
Removes every cached page of this site from each supported cache plugin that is serving cached pages, and reports each plugin separately as purged, requested, failed or skipped, with the same meanings as site-purge-post-cache. It does not flush the object cache. It does not itself purge a CDN, Cloudflare, Varnish or a cache run by the host in front of the site, though Proxy Cache Purge, Nginx Helper, SiteGround Speed Optimizer, W3 Total Cache and WP Fastest Cache can pass the purge on to one they are set up for; site-cache-status names the layers it can see. Some plugins remove other generated files with their page cache (SpeedyCache also removes its critical CSS files) and some restart their preload or send their own requests. The site is slower until pages are cached again. Allowed once every 15 minutes for the whole site, and it uses a large share of the site-wide purge budget. Refused on multisite. Requires the manage-options capability.
How it is governed
The same model as every ability in the plugin, stated for this one.
- Off until you enable it
Like every ability, Purge the whole page cache ships switched off. You turn it on one at a time, and an update never switches on a tool it serves.
- Guarded write
Writes stay conservative, and the plugin re-checks the capability before the call runs.
- Capability gated
A connection only sees Purge the whole page cache if the user you connected can run it, and the plugin checks that capability again before it executes.
- Every call audited
The call is written to the log in your own database, denials included, with the argument keys and the identifiers it touched, never free-text content.
- It can delete
This ability deletes permanently. What it removes cannot be restored from the Trash. The last administrator can never be removed.
Purge the whole page cache is one of the 4 governed Page cache abilities. See the full Page cache MCP integration.
See it in action
An illustrative run. Your real calls and data stay on your own site.
Try it with a prompt
Example requests you could paste to your agent.
Clear the whole page cache after the theme change.
Empty the page cache and tell me which plugins only requested the purge.
These are illustrative example prompts. The agent runs them as the user you connected, checked against that user's capabilities and written to your audit log.
Frequently asked
Short answers for Purge the whole page cache.
How often can it run?
Once every 15 minutes for the whole site, and it uses a large share of the site-wide purge budget. The site is slower until pages are cached again. It does not flush the object cache.
Does it work on multisite?
No. On a multisite network the purge tools are refused.
Governed by default, from the first call.
Purge the whole page cache is off until you enable it, scoped to the user you connect, and logged like everything else. Turn on only what you need.
Every ability off until you enable it, capability-gated on every call.