From mediawiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgMainCacheType and the translation is 17% complete.
Outdated translations are marked like this.
Other languages:
English • ‎dansk • ‎français • ‎magyar • ‎polski • ‎中文 • ‎日本語
Cache: $wgMainCacheType
Object cache setting
Wprowadzono w wersji:1.5.0
Usunięto w wersji:nadal w użyciu
Dozwolone wartości:(One of the CACHE constants (see below), or a string indicating the cache type set as key in $wgObjectCaches)
Domyślna wartość:CACHE_NONE


Allows to configure the object cache used.

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

Ostrzeżenie: This could potentially be slower than no caching, i.e. CACHE_NONE.

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

  • It was stated that CACHE_MEMCACHED 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.

Zobacz performance tuning .

  • Since MediaWiki 1.27, PHP sessions are stored in a cache, depending on the variable of this setting, unless overridden by $wgSessionCacheType . This may cause problems when CACHE_ACCEL is used if apcu is misconfigured (see zadanie T147161).
  • CACHE_ACCEL only supports APCu or WinCache since MediaWiki 1.31.

Zobacz też