28 if ( is_string( $wikiId ) && $this->loadBalancerFactory->getLocalDomainID() === $wikiId ) {
29 $wikiId = WikiAwareEntity::LOCAL;
32 $storeCacheKey = $wikiId === WikiAwareEntity::LOCAL ?
'LOCAL' :
'crosswikistore-' . $wikiId;
33 if ( !isset( $this->storeCache[$storeCacheKey] ) ) {
35 $this->loadBalancerFactory,
39 return $this->storeCache[$storeCacheKey];