From 1ce0aa1886d2fee6fb67c9a432793c60cce848ae Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sat, 14 Aug 2004 22:51:28 +0000 Subject: [PATCH] Disable $wgUseGzip by default since it's wildly incompatible with default output buffering. May further streamline this later. --- includes/DefaultSettings.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 044c904635..ea1bea3e98 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -220,6 +220,15 @@ $wgCacheEpoch = '20030516000000'; $wgUseFileCache = false; $wgFileCacheDirectory = "{$wgUploadDirectory}/cache"; +# When using the file cache, we can store the cached HTML gzipped to save disk +# space. Pages will then also be served compressed to clients that support it. +# THIS IS NOT COMPATIBLE with ob_gzhandler which is now enabled if supported in +# the default LocalSettings.php! If you enable this, remove that setting first. +# +# Requires zlib support enabled in PHP. +$wgUseGzip = false; + + $wgCookieExpiration = 2592000; # Squid-related settings @@ -280,11 +289,6 @@ $wgDisableUploads = true; # Uploads have to be specially set up to be secure $wgRemoteUploads = false; # Set to true to enable the upload _link_ while local uploads are disabled. Assumes that the special page link will be bounced to another server where uploads do work. $wgDisableAnonTalk = false; -# We can serve pages compressed in order to save bandwidth, -# but this will increase CPU usage. -# Requires zlib support enabled in PHP. -$wgUseGzip = function_exists( 'gzencode' ); - # Path to the GNU diff3 utility. If the file doesn't exist, # edit conflicts will fall back to the old behaviour (no merging). $wgDiff3 = '/usr/bin/diff3'; -- 2.20.1