Hi, I tried ban instead of purge since it is obsolete in 3 but still data coming old . any hint ? i used the script from below<div><br></div><div>BR</div><div><br></div><div>Zeeshan<br><div><br></div><div><div>v-purge-common </div>
<div><br></div><div>#!/bin/bash</div><div> </div><div>cmd="sudo varnishadm -T <a href="http://127.0.0.1:6082">127.0.0.1:6082</a> -S /etc/varnish/secret"</div><div>site="<a href="http://www.xyx.com">http://www.xyx.com</a>"</div>
<div>pages="</div><div>/</div><div>/feed/</div><div>/feed/atom/</div><div>"</div><div> </div><div>echo -----------------------------</div><div>echo Purging old pages from cache</div><div>echo -----------------------------</div>
<div>for page in $pages; do </div><div># $cmd ban.url "^$page\$" | sed '/^$/d' </div><div>$cmd ban.url "$site$page\$" | sed '/^$/d' </div><div>$cmd ban.list | head -n 1</div><div>done</div>
<div> </div><div>echo ---------------------------------------</div><div>echo Populating cache with new page content</div><div>echo ---------------------------------------</div><div>for page in $pages; do </div><div> curl -sL -w "%{http_code} %{url_effective}\n" $site/$page -o /dev/null</div>
<div>done</div></div><div><br></div><div><br></div></div>