Manual:$wgParserCacheType

From MediaWiki.org
Jump to: navigation, search
Parser Cache: $wgParserCacheType
Parser cache setting
Introduced in version: 1.5.0
Removed in version: still in use
Allowed values: One of the CACHE constants (see below)
Default value: CACHE_ANYTHING

Other settings: Alphabetical | By Function


[edit] Details

Parser cache setting.

Here are the available CACHE constants, as defined in Defines.php

  • CACHE_ANYTHING - Use anything, as long as it works
  • CACHE_NONE - Do not cache
  • CACHE_DB - Store cache objects in the DB
  • CACHE_MEMCACHED - memcached, must specify servers in $wgMemCachedServers
  • CACHE_ACCEL - eAccelerator, mmTurck, APC or XCache, whichever is available
Note: As of MediaWiki 1.18, current versions of eAccelerator no longer work. In MediaWiki 1.19 it will be removed.
  • CACHE_DBA - Use PHP's DBA extension to store in a DBM-style database

[edit] Note

For a very large wiki (tens of thousands of pages) value of CACHE_DB might be preferable to CACHE_MEMCACHED. Although memcached is faster, it won't be able to cache everything (no reasonable amount of memory would be enough), while DB will be. Therefore DB will have much higher percentage of cache hits.

[edit] See also

Language: English  • Français
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox