Jump to: navigation, search
This page is a translated version of the page Manual:$wgMainCacheType and the translation is 26% complete.

Other languages:
English • ‎français • ‎日本語 • ‎polski
Cache: $wgMainCacheType
Object cache setting
導入されたバージョン: 1.5.0
除去されたバージョン: 使用中
可能な値: One of the CACHE constants (see below), or a string indicating the cache type set as key in $wgObjectCaches
他の設定: アルファベット順 | 機能順


Object cache setting which replaced $wgUseMemCachedManual:$wgUseMemCached.

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

See Manual:$wgObjectCachesManual:$wgObjectCaches for an example of a custom 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. Manual:Performance tuningManual:Performance tuning を参照してください。

注 注: Since MediaWiki 1.27, PHP sessions are stored in a cache, depending on the variable of this setting, unless overridden by $wgSessionCacheTypeManual:$wgSessionCacheType. This may cause problems when CACHE_ACCEL is used. (タスク T147161)