The class used is typed against BagOStuff so access the constant
from there instead.
Bug: T218207
Change-Id: Ie22d6aa5877fb5e8e2ae0b3be87f4b28f45ad763
$wgUseDatabaseMessages = true;
/**
- * Expiry time for the message cache key
+ * Expiry time for the message cache key, in seconds.
+ *
+ * @var int Defaults to 24 hours.
*/
$wgMsgCacheExpiry = 86400;
$fname = __METHOD__;
return $this->srvCache->getWithSetCallback(
$this->srvCache->makeKey( 'messages-big', $hash, $dbKey ),
- IExpiringStore::TTL_MINUTE,
+ BagOStuff::TTL_MINUTE,
function () use ( $code, $dbKey, $hash, $fname ) {
return $this->wanCache->getWithSetCallback(
$this->bigMessageCacheKey( $hash, $dbKey ),