function _varnish_get_host in Varnish 8
Same name and namespace in other branches
- 5 varnish.module \_varnish_get_host()
- 6 varnish.module \_varnish_get_host()
- 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'];
}