wiki.techinc.nl/includes/objectcache
Timo Tijhof 4e596f5112 objectcache: Fix DI for MultiWriteBagOStuff sub caches
Follows-up Ia893ddb36427eb5, which added unreachable code because
is_subclass_of is strictly for matching subclasses.

Test plan:
* Add the following to your LocalSettings:
 $wgParserCacheType = 'mysql-multiwrite';
 $wgObjectCaches['mysql-multiwrite'] = [
	'class' => 'MultiWriteBagOStuff',
	'caches' => [
		0 => [
			'factory' => [ 'ObjectCache', 'getInstance' ],
			'args' => [ CACHE_DB ]
		],
		1 => [
			'class' => SqlBagOStuff::class,
			'loggroup' => 'SQLBagOStuff',
			'server' => [
				'type' => 'sqlite',
				'dbname' => 'wikicache',
				'tablePrefix' => '',
				'variables' => [ 'synchronous' => 'NORMAL' ],
				'dbDirectory' => $wgSQLiteDataDir,
				'trxMode' => 'IMMEDIATE',
				'flags' => 0
			]
		],
	],
	'replication' => 'async',
 ];
* Main_Page fatals without this patch, renders with.

Bug: T327158
Change-Id: I59266726ad72e78c9f99d3cc8f9c8838fabed3b5
2023-01-17 13:18:46 +00:00
..
ObjectCache.php objectcache: Fix DI for MultiWriteBagOStuff sub caches 2023-01-17 13:18:46 +00:00
SqlBagOStuff.php rdbms: Consolidate logger channels into one 2023-01-03 22:46:38 +00:00