diff --git a/repo/includes/Content/EntityHandler.php b/repo/includes/Content/EntityHandler.php index e4de8fe6dd..9059782e39 100644 --- a/repo/includes/Content/EntityHandler.php +++ b/repo/includes/Content/EntityHandler.php @@ -810,6 +810,8 @@ protected function fillParserOutput( */ protected function getParserOutputForRedirect( EntityContent $content, bool $generateHtml ) { $parserOutput = new ParserOutput(); + $parserOutput->resetParseStartTime(); + $target = $content->getRedirectTarget(); // Make sure to include the redirect link in pagelinks diff --git a/repo/includes/ParserOutput/FullEntityParserOutputGenerator.php b/repo/includes/ParserOutput/FullEntityParserOutputGenerator.php index c151646e7b..ead4fc3fa4 100644 --- a/repo/includes/ParserOutput/FullEntityParserOutputGenerator.php +++ b/repo/includes/ParserOutput/FullEntityParserOutputGenerator.php @@ -85,6 +85,7 @@ public function getParserOutput( $entity = $entityRevision->getEntity(); $parserOutput = new ParserOutput(); + $parserOutput->resetParseStartTime(); $updaterCollection = new EntityParserOutputDataUpdaterCollection( $parserOutput, $this->dataUpdaters ); $updaterCollection->updateParserOutput( $entity );