function varnish_purge_all_pages in Varnish 8
Same name and namespace in other branches
- 5 varnish.module \varnish_purge_all_pages()
- 6 varnish.module \varnish_purge_all_pages()
- 7 varnish.module \varnish_purge_all_pages()
Helper function to quickly flush all caches for the current site.
File
- ./
varnish.module, line 43 - varnish.module
Code
function varnish_purge_all_pages() {
$path = base_path();
$host = _varnish_get_host();
varnish_purge($host, $path);
}