Manual:$wgUseFileCache

From MediaWiki.org
Jump to: navigation, search

Other languages:
català • ‎Deutsch • ‎English • ‎español • ‎suomi • ‎français • ‎italiano • ‎日本語 • ‎Nederlands • ‎polski • ‎português • ‎português do Brasil
File Cache: $wgUseFileCache
This will cache static pages for non-logged-in users to reduce database traffic on public sites.
Introduced in version: pre 1.1.0
Removed in version: still in use
Allowed values: (boolean)
Default value: false
Other settings: Alphabetical | By function

Details[edit]

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, $wgShowIPinHeaderManual:$wgShowIPinHeader and $wgDebugToolbarManual:$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 $wgFileCacheDirectoryManual:$wgFileCacheDirectory. You must create the directory yourself though.

See also[edit]