Trigger Varnish cache purge on deployment to WP Engine

If you like my WordPress work, check out my new plugin, Bylines. Thanks!

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.