You are here

function flush_page_cache_get_url in Flush page cache 6

Same name and namespace in other branches
  1. 7 flush_page_cache.module \flush_page_cache_get_url()

Get the full URL for the current page without ?flush_page_cache=1 query param.

2 calls to flush_page_cache_get_url()
flush_page_cache_footer in ./flush_page_cache.module
Implementation of hook_footer().
theme_flush_page_cache_link in ./flush_page_cache.module
Outputs 'flush page cache' link which is added to a site's footer message.

File

./flush_page_cache.module, line 178
Easing the pain when you need to flush...Drupal's cache.

Code

function flush_page_cache_get_url() {
  $protocol = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' ? 'https' : 'http';
  return $protocol . '://' . $_SERVER['HTTP_HOST'] . flush_page_cache_get_path();
}