Manual:$wgSessionsInMemcached/zh
From Linux Web Expert
File:OOjs UI icon alert-destructive.svg | <translate> This feature was removed from MediaWiki core in version <tvar name=ver>1.29.0</tvar>.</translate> <translate> Please see <tvar name=page>$wgSessionsInObjectCache</tvar> for an alternative way to use this feature.</translate> |
<translate> Memcached settings</translate>: $wgSessionsInMemcached | |
---|---|
Store session data in the object cache, rather than on the filesystem. |
|
<translate> Introduced in version:</translate> | pre 1.1.0 |
<translate> Deprecated in version:</translate> | 1.20.0 (Gerrit change 17929; git #6eb6313b) |
<translate> Removed in version:</translate> | 1.29.0 (Gerrit change 324353; git #d6bdb6bb) |
<translate> Allowed values:</translate> | (布尔值) |
<translate> Default value:</translate> | false |
<translate> Other settings:</translate> <translate> Alphabetical</translate> | <translate> By function</translate> |
Details
Despite the name of this setting, it will use whatever object cache you specify in $wgMainCacheType
.
If 'true', MemcachedSessions.php is loaded on startup:
- This file gets included if $wgSessionsInMemcached is set in the config.
- It redirects session handling functions to store their data in the object cache
- instead of the local filesystem. Depending on circumstances, it may also
- be necessary to change the cookie settings to work across hostnames.
- * See: https://php.net/function.session-set-save-handler
Categories:
- MediaWiki configuration settings/zh
- MediaWiki configuration settings introduced before version 1.1.0/zh
- MediaWiki configuration settings deprecated in version 1.20.0/zh
- MediaWiki configuration settings removed in version 1.29.0/zh
- Pages with broken file links
- MediaWiki deprecated or obsolete features/zh
- Cache variables/zh