50 $revId = $revision?->getId();
53 if ( is_bool( $hints ) ) {
55 $hints = [
'generate-html' => $hints ];
58 $contentHandler = $this->contentHandlerFactory->getContentHandler( $content->
getModel() );
63 $hints[
'generate-html'] ??
true,
64 $hints[
'previous-output'] ??
null
67 $parserOutput = $contentHandler->getParserOutput( $content, $cpoParams );
78 if ( !$parserOutput->hasCacheTime() ) {
79 $parserOutput->setCacheTime( $cacheTime );
81 if ( $parserOutput->getRenderId() ===
null ) {
82 $parserOutput->setRenderId( $this->globalIdGenerator->newUUIDv1() );
86 if ( $parserOutput->getCacheRevisionId() ===
null && $revId !==
null ) {
87 $parserOutput->setCacheRevisionId( $revId );
89 if ( $parserOutput->getRevisionTimestamp() ===
null && $revTimestamp !==
null ) {
90 $parserOutput->setRevisionTimestamp( $revTimestamp );