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 after the deployment completes successfully.

Leave a Reply