X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FWikiPage.php;h=048dd6887b86ea3156bea445d5648100c689d723;hb=634f48b9d09648ec38781d222d186513e96b9ab7;hp=2265aca3abeadec940aa9e67e0467af133c03c65;hpb=edba2e008c079f4d51abc70f2c98c1dc8009a900;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/WikiPage.php b/includes/WikiPage.php index 2265aca3ab..048dd6887b 100644 --- a/includes/WikiPage.php +++ b/includes/WikiPage.php @@ -3518,6 +3518,9 @@ class PoolWorkArticleView extends PoolCounterWork { return false; } + // Reduce effects of race conditions for slow parses (bug 46014) + $cacheTime = wfTimestampNow(); + $time = - microtime( true ); $this->parserOutput = $content->getParserOutput( $this->page->getTitle(), $this->revid, $this->parserOptions ); $time += microtime( true ); @@ -3529,7 +3532,8 @@ class PoolWorkArticleView extends PoolCounterWork { } if ( $this->cacheable && $this->parserOutput->isCacheable() ) { - ParserCache::singleton()->save( $this->parserOutput, $this->page, $this->parserOptions ); + ParserCache::singleton()->save( + $this->parserOutput, $this->page, $this->parserOptions, $cacheTime ); } // Make sure file cache is not used on uncacheable content.