function _varnish_get_host in Varnish 5
Same name and namespace in other branches
- 8 varnish.module \_varnish_get_host()
- 6 varnish.module \_varnish_get_host()
- 7 varnish.module \_varnish_get_host()
Help[er 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 173 - varnish.module Provide drupal hooks for integration with the Varnish control layer.
Code
function _varnish_get_host() {
global $base_url;
$parts = parse_url($base_url);
return $parts['host'];
}