global $wgMainCacheType, $wgMessageCacheType, $wgParserCacheType;
$candidates = [ $wgMainCacheType, $wgMessageCacheType, $wgParserCacheType ];
foreach ( $candidates as $candidate ) {
- $cache = false;
if ( $candidate !== CACHE_NONE && $candidate !== CACHE_ANYTHING ) {
$cache = self::getInstance( $candidate );
// CACHE_ACCEL might default to nothing if no APCu
global $wgCommandLineMode;
$services = MediaWikiServices::getInstance();
-
- $erGroup = $services->getEventRelayerGroup();
- if ( isset( $params['channels'] ) ) {
- foreach ( $params['channels'] as $action => $channel ) {
- $params['relayers'][$action] = $erGroup->getRelayer( $channel );
- $params['channels'][$action] = $channel;
- }
- }
$params['cache'] = self::newFromParams( $params['store'] );
$params['logger'] = LoggerFactory::getInstance( $params['loggroup'] ?? 'objectcache' );
if ( !$wgCommandLineMode ) {