From: Brian Wolff Date: Fri, 15 Apr 2016 21:42:21 +0000 (-0400) Subject: Put a high max limit of 60,000 on Special:LinkSearch X-Git-Tag: 1.31.0-rc.0~7278^2 X-Git-Url: http://git.cyclocoop.org/%22.%24image2.%22?a=commitdiff_plain;h=7055f287a1aba6a88696f0831b9c0dd7b14794e3;p=lhc%2Fweb%2Fwiklou.git Put a high max limit of 60,000 on Special:LinkSearch LinkSearch uses inefficient paging. Previously there was no max limit, then it was 10,000, but people on enwiki are complaining, so put it up to something high, like 60,000, to fix the immediate issue. Special page should of course be changed to use efficient paging. Bug: T130058 Change-Id: I0c4b1ad0138571bcf286ca88bceebf86b9a095f6 --- diff --git a/includes/specials/SpecialLinkSearch.php b/includes/specials/SpecialLinkSearch.php index 2a7046ecbd..1ecbee007e 100644 --- a/includes/specials/SpecialLinkSearch.php +++ b/includes/specials/SpecialLinkSearch.php @@ -299,4 +299,14 @@ class LinkSearchPage extends QueryPage { protected function getGroupName() { return 'redirects'; } + + /** + * enwiki complained about low limits on this special page + * + * @see T130058 + * @todo FIXME This special page should not use LIMIT for paging + */ + protected function getMaxResults() { + return max( parent::getMaxResults(), 60000 ); + } }