Clear caches
wp_clear_cacheFlush the WordPress object cache, OPcache if available, and the whole page cache of the supported caching plugins present (LiteSpeed Cache, WP Super Cache, W3 Total Cache, WP Fastest Cache, SiteGround Speed Optimizer, Breeze, Nginx Helper, WP Rocket, Cache Enabler, WP-Optimize, Hummingbird). Suited to making a change visible that a cache still serves in its old form; expired transients are removed by wp_cleanup_transients. page_cache_purged lists the ones asked to purge; a cache none of them drives (host, CDN) is not reached. On a multisite network a plugin that can only empty every site at once runs only for a user who holds the network right that plugin asks for; page_cache_skipped names it and why. Returns object_cache_flushed, opcache_reset and page_cache_purged, plus page_cache_failed and page_cache_skipped where a purge failed or was left out. Only cached copies go: pages and queries are built afresh on their next request, so the site can answer slower for a short while. Requires manage_options; no undo point is recorded. Forwarded by AlphaBridge Connect to the one site this connection reaches.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||