MessageCache::loadFromDB() has a hack (introduced in this change for T164666) to avoid querying one of WMF’s contributions replicas (by querying an api replica instead):
private function loadFromDB( $code, $mode = null ) { // (T164666) The query here performs really poorly on WMF's // contributions replicas. We don't have a way to say "any group except // contributions", so for the moment let's specify 'api'. // @todo: Get rid of this hack. $dbr = wfGetDB( ( $mode === self::FOR_UPDATE ) ? DB_PRIMARY : DB_REPLICA, 'api' );
As far as I can see in eqiad.php, the contributions group no longer exists; it was apparently removed in T263127. Hopefully that means we can get rid of the hack. (But it would be a good idea to test the query on all the existing groups first, to make sure it doesn’t perform badly. The commit that introduced the hack mentions that the query only runs once per day per wiki, so if it performed badly, it may not be visible immediately after deployment.)