You are here

function boost_headers_contain in Boost 6

2 calls to boost_headers_contain()
boost_exit in ./boost.module
Implementation of hook_exit(). Performs cleanup tasks.
_boost_ob_handler in ./boost.module
PHP output buffering callback for static page caching.

File

./boost.module, line 2659
Provides static file caching for Drupal text output. Pages, Feeds, ect...

Code

function boost_headers_contain($text) {
  if (function_exists('headers_list')) {
    $list = headers_list();
    if (empty($list)) {
      return FALSE;
    }
    foreach ($list as $header) {
      $info = stristr($header, $text);
      if ($info !== FALSE) {
        return $info;
      }
    }
  }
  return FALSE;
}