Flush the page cache
There are several ways to flush the page cache.
VIP-CLI
This method requires VIP-CLI set up. Here’s an example:
$ vip @wpvip.production -y -- wp vip cache purge-url https://example.com/page-path/
Success: URL purged from the VIP page cache.
The URL can be any link on your site, not just a page URL. For example, you can purge a post link, a REST API endpoint, or a URL of a static asset like an image, CSS, or JS file.
Admin bar
Any logged in user that has manage_options
capability (normally Administrator
or Super Admin
role) will see the button “Flush Cache For Page”:
![](https://webcf.waybackmachine.org/web/20210811194836im_/https://lobby-vip.files.wordpress.com/2020/12/screen-shot-2020-12-15-at-4.44.30-pm.png)
Please note: the “Flush Cache for Page” link is only available in the admin bar on front end pages.
Clicking the button will clear cache for the page itself and all style and scripts assets loaded with the page:
![](https://webcf.waybackmachine.org/web/20210811194836im_/https://lobby-vip.files.wordpress.com/2020/12/screen-shot-2020-12-15-at-4.44.51-pm.png)
Cache API
If, for some reason, the above methods are not sufficient for your use-case, we also provide cache API that you can use in your application code.