45 $revId = $revision?->getId();
46 $revTimestamp = $revision?->getTimestamp();
48 if ( is_bool( $hints ) ) {
50 $hints = [
'generate-html' => $hints ];
53 $contentHandler = $this->contentHandlerFactory->getContentHandler( $content->
getModel() );
58 $hints[
'generate-html'] ??
true,
59 $hints[
'previous-output'] ??
null
62 $parserOutput = $contentHandler->getParserOutput( $content, $cpoParams );
73 if ( !$parserOutput->hasCacheTime() ) {
74 $parserOutput->setCacheTime( $cacheTime );
76 if ( $parserOutput->getRenderId() ===
null ) {
77 $parserOutput->setRenderId( $this->globalIdGenerator->newUUIDv1() );
81 if ( $parserOutput->getCacheRevisionId() ===
null && $revId !==
null ) {
82 $parserOutput->setCacheRevisionId( $revId );
84 if ( $parserOutput->getRevisionTimestamp() ===
null && $revTimestamp !==
null ) {
85 $parserOutput->setRevisionTimestamp( $revTimestamp );