From: Kunal Mehta Date: Tue, 26 Apr 2016 21:36:24 +0000 (-0700) Subject: LinkCache: Make clearBadLink() only clear that link X-Git-Tag: 1.31.0-rc.0~7167 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=288e9d22800aa69cac47e4523d3a5c5072748702;p=lhc%2Fweb%2Fwiklou.git LinkCache: Make clearBadLink() only clear that link Calling clear() empties all of mBadLinks instead of the one that was requested. Change-Id: Iec7f7845704dd5742b5bdf4aff05678194e08054 --- 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 ); } /**