From: Aaron Schulz Date: Fri, 15 Jun 2018 04:00:38 +0000 (-0700) Subject: Make LinkCache::invalidateTitle() use the instance WAN cache X-Git-Tag: 1.34.0-rc.0~5039^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/fiche.php?a=commitdiff_plain;h=9b6168da5311f7543b034ea88d056e2762fb2874;p=lhc%2Fweb%2Fwiklou.git Make LinkCache::invalidateTitle() use the instance WAN cache Change-Id: Idefcee9b37dcb73b2f18351123b097f4ae68fa76 --- diff --git a/includes/cache/LinkCache.php b/includes/cache/LinkCache.php index 2d088952b6..7cbb86f421 100644 --- a/includes/cache/LinkCache.php +++ b/includes/cache/LinkCache.php @@ -321,7 +321,7 @@ class LinkCache { */ public function invalidateTitle( LinkTarget $title ) { if ( $this->isCacheable( $title ) ) { - $cache = ObjectCache::getMainWANInstance(); + $cache = $this->wanCache; $cache->delete( $cache->makeKey( 'page', $title->getNamespace(), sha1( $title->getDBkey() ) ) );