/** * @since 1.27 * @param WANObjectCache $cache * @return string */ protected function getCacheKey( WANObjectCache $cache ) { $cache = MediaWikiServices::getInstance()->getMainWANObjectCache(); $lbFactory = MediaWikiServices::getInstance()->getDBLoadBalancerFactory(); return $cache->makeGlobalKey( 'user', 'id', $lbFactory->getLocalDomainID(), $this->mId ); }
$cache is passed in to getCacheKey, but isn't used, and is immediately overridden in the function body