From: Petr Skoda Date: Tue, 12 Jan 2010 11:12:59 +0000 (+0000) Subject: MDLSITE-854 setting bigger output buffer size to match size of our CSS and JS X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=90611847c84a7ef66bab708923356b021563a687;p=moodle.git MDLSITE-854 setting bigger output buffer size to match size of our CSS and JS --- diff --git a/lib/configonlylib.php b/lib/configonlylib.php index 93759c1f6a..e99981cf4e 100644 --- a/lib/configonlylib.php +++ b/lib/configonlylib.php @@ -104,7 +104,14 @@ function min_enable_zlib_compression() { } @ini_set('output_handler', ''); - @ini_set('zlib.output_compression', 1); + + /* + * docs clearly say 'on' means enable and number menas size of bufffer, + * but unfortunately some PHP version break when we set 'on' here. + * 1 probably sets chunk size to 4096. our CSS and JS scripts are much bigger, + * so let's try some bigger sizes. + */ + @ini_set('zlib.output_compression', 65536); return true; } \ No newline at end of file