Purge Varnish Cache with PHP file – Linux
vim purge-varnish-cache.php
Paste below code
<?php $output = shell_exec('curl -X PURGE "https://the-d2.com" > /dev/null 2>&1'); echo "Varnish Cache Cleared :)"; ?>
Place the php file somewhere that you can call it from browser, e.g the-d2.com/purge-varnish-cache.php