From 9b6168da5311f7543b034ea88d056e2762fb2874 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 14 Jun 2018 21:00:38 -0700 Subject: [PATCH] Make LinkCache::invalidateTitle() use the instance WAN cache Change-Id: Idefcee9b37dcb73b2f18351123b097f4ae68fa76 --- includes/cache/LinkCache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() ) ) ); -- 2.20.1