Manual:$wgMainCacheType/cs

Podrobnosti
Umožňuje konfigurovat použitou mezipaměť objektů.

Zde jsou standardně dostupné klíče (definované jako konstanty v Defines.php):


 * – Neukládat do mezipaměti (výchozí).
 * – Použijte nebo, pokud jsou nastaveny na něco jiného než   nebo  . 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).