From: Roan Kattouw Date: Wed, 26 Aug 2009 21:13:06 +0000 (+0000) Subject: API: Per rainman, mark list=search as an expensive query and lower its limits to... X-Git-Tag: 1.31.0-rc.0~40039 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=f8f279e86501ed52ff4c0718ec8fda8988ee15cd;p=lhc%2Fweb%2Fwiklou.git API: Per rainman, mark list=search as an expensive query and lower its limits to 50/500 from 500/5000 --- 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 +}