镜像自地址
https://github.com/wikimedia/mediawiki-extensions-CentralAuth
已同步 2024-06-01 18:00:56 +08:00
比较提交
2 次代码提交
071c9e0049
...
d11667f6dd
作者 | SHA1 | 提交日期 | |
---|---|---|---|
|
d11667f6dd | ||
|
0efc5a5c70 |
|
@ -24,10 +24,10 @@ use BagOStuff;
|
|||
use CachedBagOStuff;
|
||||
use IBufferingStatsdDataFactory;
|
||||
use MediaWiki\Config\ServiceOptions;
|
||||
use MediaWiki\MediaWikiServices;
|
||||
use MediaWiki\Session\Session;
|
||||
use MediaWiki\Session\SessionManager;
|
||||
use MWCryptRand;
|
||||
use ObjectCache;
|
||||
use Wikimedia\Stats\StatsFactory;
|
||||
|
||||
class CentralAuthSessionManager {
|
||||
|
@ -102,7 +102,7 @@ class CentralAuthSessionManager {
|
|||
if ( !$this->sessionStore ) {
|
||||
$sessionCacheType = $this->options->get( 'CentralAuthSessionCacheType' )
|
||||
?? $this->options->get( 'SessionCacheType' );
|
||||
$cache = ObjectCache::getInstance( $sessionCacheType );
|
||||
$cache = MediaWikiServices::getInstance()->getObjectCacheFactory()->getInstance( $sessionCacheType );
|
||||
$this->sessionStore = $cache instanceof CachedBagOStuff
|
||||
? $cache : new CachedBagOStuff( $cache );
|
||||
}
|
||||
|
|
正在加载...
在新工单中引用
屏蔽一个用户