You are here

function varnish_purge_all_pages in Varnish 8

Same name and namespace in other branches
  1. 5 varnish.module \varnish_purge_all_pages()
  2. 6 varnish.module \varnish_purge_all_pages()
  3. 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);
}