Jump to content

Manual:$wgUseFileCache: Difference between revisions

From mediawiki.org
Content deleted Content added
Marked this version for translation
Line 21: Line 21:
<translate>
<translate>
<!--T:7-->
<!--T:7-->
(Part of that automatically done after <tvar|rev>[[Special:Code/MediaWiki/46374|r46374]]</>.)
(Part of that automatically done after <tvar|rev>{{rev|46374}}</>.)


<!--T:15-->
<!--T:15-->

Revision as of 01:04, 23 June 2019

File Cache: $wgUseFileCache
Create static HTML pages for unregistered viewers to reduce database traffic.
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 the server-side file cache. The cache consists of static HTML pages that are served to unregistered viewers to reduce database traffic.

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

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

See also