Jump to content

Manual:$wgUseFileCache

From mediawiki.org
Revision as of 22:16, 31 October 2015 by 88.130.73.240 (talk) (Fix a wrong and misleading sentence. According to the linked commit, the edit from 05:42, 16 July 2015 is vandalism. Additionally, neither the version before 05:42, 16 July 2015‎, nor the one from after that were correct.)
File Cache: $wgUseFileCache
This will cache static pages for non-logged-in users to reduce database traffic on public sites.
Introduced in version:Before 1.1.0
Removed in version:Still in use
Allowed values:(boolean)
Default value:false

Details

Set to true to activate server-side file caching. This will cache static pages for non-logged-in users to reduce database traffic on public sites.

If $wgShowIPinHeader is set to true, $wgShowIPinHeader will automatically be set to false. (Done automatically after r46374.)

Specify where you want the cache files to go in your server filesystem using $wgFileCacheDirectory . You must create the directory yourself though.

See also Manual:File cache.

[[Category:Cache variablesTemplate:Translation|UseFileCache]]