50 if ( is_string( $wikiId ) && $this->loadBalancerFactory->getLocalDomainID() === $wikiId ) {
51 $wikiId = WikiAwareEntity::LOCAL;
54 $storeCacheKey = $wikiId === WikiAwareEntity::LOCAL ?
'LOCAL' :
'crosswikistore-' . $wikiId;
55 if ( !isset( $this->storeCache[$storeCacheKey] ) ) {
57 $this->loadBalancerFactory->getMainLB( $wikiId ),
61 return $this->storeCache[$storeCacheKey];