Trigger Varnish cache purge on deployment to WP Engine

Automatically deploying a site to WP Engine, and want to trigger a Varnish cache purge too? It’s as easy as adding the following snippet to a mu plugin.

Once you’ve done so, you can have your deployment script ping http://yoursite.wpengine.com/?purge-cache=901bcc678021c0e12f1583085cafda1d after the deployment completes successfully.

Leave a Reply

Your email address will not be published. Required fields are marked *