Make LinkCache::invalidateTitle() use the instance WAN cache
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 15 Jun 2018 04:00:38 +0000 (21:00 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Fri, 15 Jun 2018 04:00:38 +0000 (21:00 -0700)
Change-Id: Idefcee9b37dcb73b2f18351123b097f4ae68fa76

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() ) )
                        );