From 288e9d22800aa69cac47e4523d3a5c5072748702 Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Tue, 26 Apr 2016 14:36:24 -0700 Subject: [PATCH] LinkCache: Make clearBadLink() only clear that link Calling clear() empties all of mBadLinks instead of the one that was requested. Change-Id: Iec7f7845704dd5742b5bdf4aff05678194e08054 --- includes/cache/LinkCache.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/includes/cache/LinkCache.php b/includes/cache/LinkCache.php index 8a79bd849f..276e818824 100644 --- a/includes/cache/LinkCache.php +++ b/includes/cache/LinkCache.php @@ -195,8 +195,11 @@ class LinkCache { } } + /** + * @param string $title prefixed dbkey + */ public function clearBadLink( $title ) { - $this->mBadLinks->clear( [ $title ] ); + $this->mBadLinks->delete( $title ); } /** -- 2.20.1