You are here

function _boost_generate_gzip_test_file in Boost 6

Generate iframe gzip cookie test html file.

3 calls to _boost_generate_gzip_test_file()
boost_cache_set in ./boost.module
Replaces/Sets the cached contents of the specified page, if stale.
boost_update_6125 in ./boost.install
Update 6125 - Reset boost-gzip-cookie-test.html.gz file
boost_update_6126 in ./boost.install
Update 6126 - Reset boost-gzip-cookie-test.html.gz file

File

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

Code

function _boost_generate_gzip_test_file() {
  $filename = BOOST_ROOT_CACHE_DIR . '/' . BOOST_PERM_GZ_DIR . '/boost-gzip-cookie-test.html.gz';
  if (!file_exists($filename)) {
    $string = <<<ETO
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  "http://www.w3.org/TR/html4/loose.dtd">
<html><head><meta name="robots" content="noindex, nofollow" /><title> </title></head><body> </body></html>
ETO;
    _boost_write_file_chmod($filename, gzencode($string, 9));
  }
}