Manual:$wgMainCacheType

Details
Allows to configure the object cache used.

Here are the keys available by default (defined as constants in Defines.php):
 * – Use ,  or  if they are set to something other than   or  . Otherwise use  .
 * – Do not cache (default).
 * – Store objects in the database table  table.  Warning:  This could potentially be slower than no caching for .
 * – memcached, must specify servers in <tvar|MemCachedServers></>.
 * – APCu or WinCache if available.

See <tvar|ObjectCaches></> for an example of a custom backend (e.g. Redis).


 * It was stated that <tvar|memcached> </> directive will provide the most significant man>Special:MyLanguage/Manual:Performance tuning</>|performance improvements in the case where you have memcached and an opcode cache installed.

See <tvar|1></>.
 * This is just one of MediaWiki's caching settings. For best performance you may need to consider other caching settings.
 * Since MediaWiki 1.27, PHP sessions are stored in a cache, depending on the variable of this setting, unless overridden by <tvar|SessionCacheType></>. This may cause problems when <tvar|accel> </> is used.
 * only supports APCu or WinCache since MediaWiki 1.31. XCache support was removed as upstream is inactive and has no plans to move to PHP 7.