Search suggestion API requests make up a substantial portion of our total apache...
authorTim Starling <tstarling@users.mediawiki.org>
Sun, 14 Feb 2010 23:52:45 +0000 (23:52 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sun, 14 Feb 2010 23:52:45 +0000 (23:52 +0000)
commit278a489ffe278e84b57ea948c19f442a11be1448
tree18b6f39867937ccef20f749c56f0e822cb327451
parent80f9448690b189e21f961ba8a4a55e6cac5b0712
Search suggestion API requests make up a substantial portion of our total apache load and thus deserve some optimisation:
* Made the cache expiry time configurable via $wgSearchSuggestCacheExpiry
* Removed must-revalidate from the Cache-Control of such requests. Introduced a generic interface to ApiMain for doing that.
includes/DefaultSettings.php
includes/api/ApiMain.php
includes/api/ApiOpenSearch.php