diff --git a/typo3/sysext/frontend/Classes/Http/RequestHandler.php b/typo3/sysext/frontend/Classes/Http/RequestHandler.php index 94ce4c09ae382b319ea4447addf363949c2bd0b1..604b85b41a1bdb1d1ed1d6837c012cc149634a3f 100644 --- a/typo3/sysext/frontend/Classes/Http/RequestHandler.php +++ b/typo3/sysext/frontend/Classes/Http/RequestHandler.php @@ -88,7 +88,10 @@ class RequestHandler implements RequestHandlerInterface, PsrRequestHandlerInterf // Render non-cached page parts by replacing placeholders which are taken from cache or added during page generation if ($controller->isINTincScript()) { - $controller->preparePageContentGeneration(); + if (!$controller->isGeneratePage()) { + // When page was generated, this was already called. Avoid calling this twice. + $controller->preparePageContentGeneration(); + } $this->timeTracker->push('Non-cached objects'); $controller->INTincScript(); $this->timeTracker->pull();