Governed ability
Purge a post from the page cache
aafm/site-purge-post-cacheGuarded write
Purge a post from the 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 one published post or page from the page cache of every supported cache plugin that is serving cached pages on this site, and reports each plugin separately: purged (the standard cached copy was found where the plugin keeps it and no copy from before the purge is left; when the reason is recached the plugin has already cached the page again, which SiteGround Speed Optimizer does straight away when its preheat option is on), requested (the purge was sent and removal could not be proven, which includes the case where no cached copy was found), failed, or skipped with a reason. The page URL is worked out from the post id; it cannot be supplied. Some plugins also clear the home page, archives or pages under the same address, some send their own requests to the site or to a proxy when they purge, and some request or queue the page again afterwards; site-cache-status shows which plugins remove pages under a URL and which send requests of their own. A plugin that fetches the page again while it purges can make this call take several seconds. Counts against a site-wide purge budget shared with the other purge tools. Does not touch 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. 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 a post from the 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 a post from the 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.
Purge a post from the 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.
I just updated post 88. Clear it from the page cache.
Clear the cached copy of the About page and tell me what each cache plugin reported.
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 a post from the page cache.
What does the result mean?
Each plugin gets its own result: purged, requested, failed or skipped with a reason. LiteSpeed Cache, W3 Total Cache and Proxy Cache Purge can't confirm a removal, so their results never say purged. Requested also covers the case where no cached copy was found.
Does it clear my CDN too?
This plugin doesn't purge a CDN, Cloudflare, Varnish or a host's cache itself, but a cache plugin can pass the purge on to one it is set up for: Proxy Cache Purge to its proxy, Nginx Helper to nginx, SiteGround Speed Optimizer to SiteGround's server cache, and W3 Total Cache or WP Fastest Cache to Varnish, Cloudflare or a CDN configured inside them.
Can I give it a URL instead of a post?
No. The page address is worked out from the post id. To clear an address, use Purge a URL from the page cache.
Governed by default, from the first call.
Purge a post from the 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.