function _boost_gz_copy_file in Boost 6
Copy a file and gzip its contents
Parameters
$src: Source File.
$dest: Destination.
2 calls to _boost_gz_copy_file()
- _boost_copy_css_files in ./
boost.module - Extract css filenames from html and copy them & their children.
- _boost_copy_js_files in ./
boost.module - Extract javascript filenames from html and copy them & their children.
File
- ./
boost.module, line 5006 - Provides static file caching for Drupal text output. Pages, Feeds, ect...
Code
function _boost_gz_copy_file($src, $dest) {
$destinations = _boost_copy_file_get_domains($dest);
foreach ($destinations as $destination) {
_boost_write_file_chmod($destination, gzencode(file_get_contents($src), 9));
}
}