Integrations / Page cache
Governed integration
Page cache MCP abilities
Page cache tools for AI agents: 4 governed abilities that see your cache plugin and clear its cached pages. They appear on your WordPress MCP server only while a supported page cache plugin is active, and stay off until you enable them. Report which of 13 supported cache plugins are active and clear one post, one URL or the whole site from their page cache. This plugin purges no CDN, Cloudflare, Varnish or host cache itself, but a cache plugin set up for one can pass the purge on.
Governed exactly like core
These abilities are off until you enable them, capability-checked before every call, and written to the same audit log as everything else. There is no separate trust model for integrations.
- Active only while a supported page cache plugin is installed and active
- Off by default, enabled one ability at a time
- Capability-gated on every call, discovery and execution separately
- Logged like core, denials included, keys and identifiers, never free-text
How the Page cache tools work
These tools call your cache plugin’s own purge functions, so an agent that just edited a page can clear its cached copy and say what happened. Supported: WP Super Cache, WP Fastest Cache, W3 Total Cache, WP-Optimize, Cache Enabler, Hummingbird, Jetpack Boost, SpeedyCache, Breeze, SiteGround Speed Optimizer, LiteSpeed Cache, Nginx Helper and Proxy Cache Purge.
What an agent can do
- See which supported cache plugins are active, whether each is serving cached pages, and whether its purge can be confirmed or only requested.
- Clear one published post or page, one URL of this site, or the whole site from every supported cache plugin that is serving cached pages.
- Read a result per plugin: purged, requested, failed or skipped. LiteSpeed Cache, W3 Total Cache and Proxy Cache Purge can’t confirm a removal, so their results never say purged.
CDNs, proxies and host caches
- This plugin doesn’t purge a CDN, Cloudflare, Varnish or a host’s cache itself.
- 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. WP Fastest Cache’s URL purge does not pass on.
- Some cache plugins also send requests to your own site while they purge.
Who can do what
- Every tool starts off and needs a user who can manage options.
- The whole-site purge is allowed once every 15 minutes. It does not flush the object cache.
- On a multisite network the purge tools are refused.
How to connect an AI agent to Page cache
Activate a supported page cache plugin, then open the Agent Abilities for MCP screen and enable the Page cache abilities you want. Connect your AI client, such as Claude or ChatGPT, to the endpoint on the Connection tab, and it can call those abilities as the WordPress user you connected. The address below is illustrative; your real one shows there. Each client has its own setup guide.
The 4 Page cache abilities
Each one is off until you enable it and capability-checked on every call. Open any card to see how it is governed.
Cache status
Read onlyLists the supported page cache plugins that are active on this site, whether each one is serving cached pages right now (for Proxy Cache Purge and Nginx Helper, which cannot tell whether a proxy caches, this means purging is available), which purges it supports, whether a purge can be confirmed at best or only requested, whether it also removes pages under a URL, and whether it sends requests of its own when it purges. Names cache plugins it found that these tools do not cover, and caches in front of the site such as Cloudflare, Varnish or Fastly that it can see in the headers of this request; these tools do not purge a CDN or a cache run by the host themselves, though a cache plugin that manages one can pass the purge on to it. Also says whether a persistent object cache is in use and how much of the site-wide purge budget is left. Reads only: it calls no purge and makes no request. Never returns settings, hosts or file paths. Requires the manage-options capability.
View abilityPurge a post from the page cache
Guarded writeRemoves 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.
View abilityPurge a URL from the page cache
Guarded writeRemoves 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.
View abilityPurge the whole page cache
Guarded writeRemoves 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.
View abilityTry it with a prompt
Example requests you could paste to your agent once Page cache abilities are on.
Which cache plugins are active on this site, and can a purge be confirmed or only requested?
I just updated post 88. Clear it from the page cache and tell me what each cache plugin reported.
Clear the cached copy of /pricing/ and show me the result per plugin.
Clear the whole page cache, then 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.
Add Page cache, keep the same control.
Every integration ability is off until you enable it, scoped to the user you connect, and logged like everything else. Turn on only what you need.
Active only while its host plugin is on, and gated like core.