You are here

function flush_page_cache_get_url in Flush page cache 7

Same name and namespace in other branches
  1. 6 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_page_alter in ./flush_page_cache.module
Implements hook_page_alter().
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 170
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();
}