Commit e4cdb483 authored by bgm's avatar bgm

Issue #1416214 gzip support: write gzip cache only if gzip was enabled by the admin config

parent 5967b6c1
......@@ -315,7 +315,7 @@ function boost_exit($destination = NULL) {
boost_write_file($_boost['filename'], $data);
// Gzip support.
if (function_exists('gzencode')) {
if (BOOST_GZIP && $_boost['matched_header_info']['gzip']) {
boost_write_file($_boost['filename'] . '.gz', gzencode($data, 9));
}
}
......@@ -1028,6 +1028,7 @@ function boost_match_header_attributes($header_info) {
$keys = array(
'enabled',
'gzip',
'extension',
'lifetime_max',
'lifetime_min',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment