We have successfully configured varnish in our magento website, it's working great. But the problem is varnish is not purging when we clear the cache either via admin panel or ssh command. We restart varnish server every time. We have also configured CDN (It may be reason for this cache issue). We have tried to set http_cache_hosts using the command
bin/magento setup:config:set --http-cache-hosts=xx.xx.xxx.xxx:6081
Also tried with ports 8080,6082
In our .vcl file
acl purge {
"xx.xx.xxx.xxx";
}
Above configurations is not at all working. We are missing something to make it work. Can anyone help on this?