Set max-age to 2419200 (one month) for action=ulslocalization API calls

I specified one year as the desirable value on the bug, but one month is
probably saner since we're still hammering out the details of how to deliver
this data.

Bug: 56509
Change-Id: I4e3664f953e25b2c01b9c1f75d3aa27ef7e3af4f
This commit is contained in:
Ori Livneh
2013-11-02 11:43:47 -07:00
parent f373659150
commit 35bbceb384

View File

@@ -25,7 +25,7 @@ class ApiULSLocalization extends ApiBase {
public function execute() {
$this->getMain()->setCacheMode( 'public' );
$this->getMain()->setCacheMaxAge( 300 );
$this->getMain()->setCacheMaxAge( 2419200 );
$params = $this->extractRequestParams();
$language = $params['language'];