Open main menu


This page is a translated version of the page Manual:$wgMessageCacheType and the translation is 12% complete.

Other languages:
English • ‎français • ‎magyar • ‎polski • ‎русский • ‎日本語
Message Cache: $wgMessageCacheType
Message 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))
Domyślna wartość:CACHE_ANYTHING


Message cache setting.

Here are the available CACHE constants, as defined in Defines.php

  • CACHE_ANYTHING - Use anything, as long as it works
  • CACHE_NONE - Do not cache
  • CACHE_DB - Store cache objects in the DB
  • CACHE_MEMCACHED - memcached , must specify servers in $wgMemCachedServers
  • CACHE_ACCEL - APC, APCu, WinCache or XCache, whichever is available
  • CACHE_DBA (usunięto w 1.23) - Use PHP's DBA extension to store in a DBM-style database


If you set $wgMainCacheType then the values for $wgParserCacheType and $wgMessageCacheType will inherit it. You do not need to set those variables unless you plan on doing something very advanced.

Zobacz też