Manual:$wgUseFileCache

From Linux Web Expert

Revision as of 06:34, 28 January 2022 by imported>NguoiDungKhongDinhDanh (Fix old source tag)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<translate> File Cache</translate>: $wgUseFileCache
Create static HTML pages for unregistered viewers to reduce database traffic.
<translate> Introduced in version:</translate>pre 1.1.0
<translate> Removed in version:</translate><translate> still in use</translate>
<translate> Allowed values:</translate>(boolean)
<translate> Default value:</translate>false

Details

Set to true to activate the server-side file cache. The cache consists of static HTML pages that are served to unregistered viewers to reduce database traffic.

The HTML pages will be created in the directory specified by $wgFileCacheDirectory . You must create the directory yourself though.

If $wgUseFileCache is set to true, $wgDebugToolbar will automatically be set to false. (Part of that automatically done after r46374.)

See also