From f8f279e86501ed52ff4c0718ec8fda8988ee15cd Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Wed, 26 Aug 2009 21:13:06 +0000 Subject: [PATCH] API: Per rainman, mark list=search as an expensive query and lower its limits to 50/500 from 500/5000 --- includes/api/ApiQuerySearch.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/api/ApiQuerySearch.php b/includes/api/ApiQuerySearch.php index 6d3422d1a7..9827b47638 100644 --- a/includes/api/ApiQuerySearch.php +++ b/includes/api/ApiQuerySearch.php @@ -194,8 +194,8 @@ class ApiQuerySearch extends ApiQueryGeneratorBase { ApiBase :: PARAM_DFLT => 10, ApiBase :: PARAM_TYPE => 'limit', ApiBase :: PARAM_MIN => 1, - ApiBase :: PARAM_MAX => ApiBase :: LIMIT_BIG1, - ApiBase :: PARAM_MAX2 => ApiBase :: LIMIT_BIG2 + ApiBase :: PARAM_MAX => ApiBase :: LIMIT_SML1, + ApiBase :: PARAM_MAX2 => ApiBase :: LIMIT_SML2 ) ); } @@ -228,4 +228,4 @@ class ApiQuerySearch extends ApiQueryGeneratorBase { public function getVersion() { return __CLASS__ . ': $Id$'; } -} \ No newline at end of file +} -- 2.20.1