You are here

function _varnish_get_host in Varnish 8

Same name and namespace in other branches
  1. 5 varnish.module \_varnish_get_host()
  2. 6 varnish.module \_varnish_get_host()
  3. 7 varnish.module \_varnish_get_host()

Helper function to parse the host from the global $base_url

1 call to _varnish_get_host()
varnish_purge_all_pages in ./varnish.module
Helper function to quickly flush all caches for the current site.

File

./varnish.module, line 212
varnish.module

Code

function _varnish_get_host() {
  global $base_url;
  $parts = parse_url($base_url);
  return $parts['host'];
}