From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgSessionCacheType and the translation is 14% complete.

Other languages:
Deutsch • ‎English • ‎dansk • ‎español • ‎français • ‎italiano • ‎magyar • ‎polski • ‎português • ‎português do Brasil • ‎日本語
Memcached Einstellungen: $wgSessionCacheType
The cache type for storing session data.
Eingeführt in Version:1.20.0 (Gerrit change 17929; git #6eb6313b)
Entfernt in Version:weiterhin vorhanden
Erlaubte Werte:One of the CACHE constants (see $wgMainCacheType )
Andere Einstellungen: Alphabetisch | Nach Funktion


The storage mechanism for session data. Note that despite the name saying "cache" this is the primary storage mechanism for sessions; if it doesn't work, it will be impossible to log in to the wiki.

From MediaWiki 1.20 to 1.26, it was used only if $wgSessionsInObjectCache was true, otherwise MediaWiki fell back to standard PHP session handling.

Since MediaWiki 1.27, sessions are always stored in the object cache.

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