Jump to content

Manual:$wgUseFileCache: Difference between revisions

From mediawiki.org
Content deleted Content added
Marked this version for translation
m See also: migration to {{#translation:}}, replaced: {{translation}} → {{#translation:}}
Line 36: Line 36:
* {{ll|Manual:File cache}}
* {{ll|Manual:File cache}}


[[Category:Cache variables{{translation}}|UseFileCache]]
[[Category:Cache variables{{#translation:}}|UseFileCache]]

Revision as of 18:15, 20 October 2017

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 $wgUseFileCache is set to true, $wgShowIPinHeader and $wgDebugToolbar will automatically be set to false. (Part of that automatically done 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