Manual:$wgMainCacheType

Details
Object cache setting which replaced .

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 <tvar|MainCacheType></>.
 * – memcached, must specify servers in <tvar|MemCachedServers></>.
 * – APC if available.  Note:  If using <tvar|accel> </>, increasing <tvar|size>apc.shm_size</> may improve performance.

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.