Manual:$wgMainCacheType/ru

Details
Allows to configure the object cache used.

Here are the keys available by default (defined as constants in Defines.php):


 * – Do not cache (default).
 * – Use or  if they are set to something other than   or  . Otherwise use.
 * – Use APCu or WinCache or OPcache if available.
 * – Use if available. Servers must additionally be specified in.
 * – Use the database table.
 *  Warning:  This could potentially be slower than no caching, i.e..

PHP works by compiling a PHP file into bytecode and then executing that bytecode. The process of compiling a large application such as MediaWiki takes considerable time. PHP accelerators work by storing the compiled bytecode and executing it directly reducing the time spent compiling code.

OPcache is included in PHP 5.5.0 and later and the recommended accelerator for MediaWiki. Other supported op code caches are: WinCache.

Opcode caches store the compiled output of PHP scripts, greatly reducing the amount of time needed to run a script multiple times. MediaWiki does not need to be configured to do PHP bytecode caching and will "just work" once installed and enabled them.

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

