*/
$wgAPICacheHelp = true;
+/**
+ * Set the timeout for the API help text cache. Ignored if $wgAPICacheHelp
+ * is false.
+ */
+$wgAPICacheHelpTimeout = 60*60;
+
/**
* Parser test suite files to be run by parserTests.php when no specific
* filename is passed to it.
* Override the parent to generate help messages for all available modules.
*/
public function makeHelpMsg() {
- global $wgMemc, $wgAPICacheHelp;
+ global $wgMemc, $wgAPICacheHelp, $wgAPICacheHelpTimeout;
$this->mPrinter->setHelp();
// Get help text from cache if present
$key = wfMemcKey( 'apihelp', $this->getModuleName(),
}
$retval = $this->reallyMakeHelpMsg();
if ( $wgAPICacheHelp )
- $wgMemc->set( $key, $retval, 60*60 );
+ $wgMemc->set( $key, $retval, $wgAPICacheHelpTimeout );
return $retval;
}