Manual:$wgUseGzip/zh

From mediawiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgUseGzip and the translation is 41% complete.
Other languages:
English • ‎français • ‎magyar • ‎polski • ‎中文 • ‎日本語
缓存: $wgUseGzip
用GZip存儲緩存頁面
引进版本:pre 1.1.0
移除版本:仍在使用
允许的值:(布尔值)
默认值:false
From 1.2.0 to 1.3.0 inclusive, it was calculated automatically.

细节

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. In older versions of MediaWiki it also controlled if normal (non file-cached) pages were gzipped.

警告 警告: THIS IS NOT COMPATIBLE with ob_gzhandler which some users may have enabled in LocalSettings.php. (參見 手册:$wgDisableOutputCompression 。) If you enable this, remove that setting first. It is also incompatible with automated gzipping done on the server side (e.g. mod_deflate) and zlib.output_compression

需要PHP中啟用zlib支援。

Between 1.2.0 and 1.3.0 (inclusive) the default value was true if the function 'gzencode' is defined, otherwise false. 對於之前或之後的版本默認為假。

註釋

You can test your website compression here: