Jump to navigation Jump to search

Other languages:
Deutsch • ‎English • ‎dansk • ‎español • ‎français • ‎italiano • ‎polski • ‎português • ‎português do Brasil • ‎日本語
Memcached settings: $wgSessionCacheType
The cache type for storing session data.
Introduced in version:1.20.0 (Gerrit change 17929; git #6eb6313b)
Removed in version:still in use
Allowed values:One of the CACHE constants (see $wgMainCacheType )
Default value:CACHE_ANYTHING
Other settings: Alphabetical | By function


The cache type for storing session data. From MediaWiki 1.20 to 1.26, it is used only if $wgSessionsInObjectCache is true, otherwise MediaWiki falls back to standard PHP session handling. From MediaWiki 1.27, this other configuration parameter is always considered as true.

For available types see $wgMainCacheType .

For proper operation this must be set to a persistent cache, and if there are multiple servers that might serve a single client's requests the cache must be shared by all of them. If $wgMainCacheType is set to CACHE_ACCEL and this is left at its default CACHE_ANYTHING, the cache used may not meet these requirements. The solution is to set this to an appropriate cache, such as CACHE_DB. Note that if CACHE_DB is used then users cannot log in when the respective wiki's database was locked with e.g. $wgReadOnly .

See also[edit]