Merge "Make LinkCache::invalidateTitle() use the instance WAN cache"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Fri, 15 Jun 2018 15:46:43 +0000 (15:46 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 15 Jun 2018 15:46:43 +0000 (15:46 +0000)
includes/cache/LinkCache.php

index 2d08895..7cbb86f 100644 (file)
@@ -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() ) )
                        );