Jump to content

Manual:$wgUseFileCache: Difference between revisions

From mediawiki.org
Content deleted Content added
No edit summary
No edit summary
Line 32: Line 32:


<!--T:10-->
<!--T:10-->
See also [[<tvar|cache>Special:MyLanguage/Manual:File cache</>|Manual:File cache]].
== See also ==
* [[Manual:$wgFileCacheDirectory]]
* [[<tvar|cache>Special:MyLanguage/Manual:File cache</>|Manual:File cache]]
</translate>
</translate>



Revision as of 22:33, 31 October 2015

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

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