Jump to: navigation, search

Other languages:
English • ‎français • ‎日本語 • ‎polski
Cache: $wgMainCacheType
Object cache setting
Introduced in version: 1.5.0
Removed in version: still in use
Allowed values: One of the CACHE constants (see below), or a string indicating the cache type set as key in $wgObjectCaches
Default value: CACHE_NONE
Other settings: Alphabetical | By function


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).

Note Note:

Note Note: 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. (task T147161)

See also[edit]