]> git.mjollnir.org Git - moodle.git/commitdiff
MDLSITE-854 setting bigger output buffer size to match size of our CSS and JS
authorPetr Skoda <skodak@moodle.org>
Tue, 12 Jan 2010 11:12:59 +0000 (11:12 +0000)
committerPetr Skoda <skodak@moodle.org>
Tue, 12 Jan 2010 11:12:59 +0000 (11:12 +0000)
lib/configonlylib.php

index 93759c1f6afae7d6534babac42a7787b419a3999..e99981cf4ed8210bf3101202de4be80b14027285 100644 (file)
@@ -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