Governed ability
Purge a URL from the page cache
aafm/site-purge-url-cacheGuarded write
Purge a URL 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 URL of this site from the page cache of every 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. The URL must be on this site's own address, with no query string and no fragment; wildcards, relative steps and addresses on other sites are refused before any cache plugin is called. The address is put into the form this site serves (with or without a final slash) and the result shows the address used. Some plugins also remove pages under that URL; site-cache-status says which. A plugin for which the home URL means the whole site is skipped here; use site-purge-site-cache for that. Some plugins send their own requests when they purge, and one that fetches the page again while it purges can make this call take several seconds. Counts against the site-wide purge budget. 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 and W3 Total 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 URL 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 URL 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 URL 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.
Clear /pricing/ from the page cache.
Clear the cached copy of the shop page and show me the result per plugin.
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 URL from the page cache.
Which addresses can it clear?
One URL on this site's own address, with no query string and no fragment. Wildcards, relative steps and addresses on other sites are refused before any cache plugin is called. For the home page on a plugin where it means the whole site, use Purge the whole page cache.
Does it clear my CDN too?
This plugin doesn't purge a CDN, Cloudflare, Varnish or a host's cache itself. Proxy Cache Purge, Nginx Helper, SiteGround Speed Optimizer and W3 Total Cache can pass a URL purge on to one they are set up for. WP Fastest Cache passes on post and whole-site purges, but not this one.
Governed by default, from the first call.
Purge a URL 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.