$wgMessageCacheType = CACHE_ANYTHING;
$wgParserCacheType = CACHE_ANYTHING;
+$wgParserCacheExpireTime = 86400;
+
$wgSessionsInMemcached = false;
$wgLinkCacheMemcached = false; # Not fully tested
}
function save( $parserOutput, &$article, &$user ){
+ global $wgParserCacheExpireTime;
$key = $this->getKey( $article, $user );
$now = wfTimestampNow();
$parserOutput->setCacheTime( $now );
if( $parserOutput->containsOldMagic() ){
$expire = 3600; # 1 hour
} else {
- $expire = 86400; # 1 day
+ $expire = $wgParserCacheExpireTime;
}
$this->mMemc->set( $key, $parserOutput, $expire );
}