Manual:$wgMainCacheType/en

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

See for an example of a custom backend (e.g. Redis).


 * It was stated that  directive will provide the most significant performance improvements in the case where you have memcached and an opcode cache installed.
 * This is just one of MediaWiki's caching settings. For best performance you may need to consider other caching settings. See.

Since MediaWiki 1.27, PHP sessions are stored in a cache, depending on the variable of this setting, unless overridden by. This may cause problems when  is used.