dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
API * cache expiration control
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiOpenSearch.php
diff --git
a/includes/api/ApiOpenSearch.php
b/includes/api/ApiOpenSearch.php
index
9e5afcb
..
50b8e9c
100644
(file)
--- a/
includes/api/ApiOpenSearch.php
+++ b/
includes/api/ApiOpenSearch.php
@@
-43,6
+43,9
@@
class ApiOpenSearch extends ApiBase {
$search = null;
extract($this->ExtractRequestParams());
+ // Open search results may be stored for a very long time
+ $this->getMain()->setCacheMaxAge(1200);
+
$title = Title :: newFromText($search);
if(!$title)
return; // Return empty result