Revert "ParserOutputPostCacheTransform: Don't reprocess content"

This reverts commit 5b2142b9c7.

Reason for revert: This didn't fix the problem at all and actually made it slightly worse. Earlier the 'latest comment' metadata would be displayed but the page itself wouldn't get processed. Now, that metadata is also gone! :-) 

Change-Id: I2644ffbbdabccb99ae40348a52b19b1060118ae1
This commit is contained in:
Subramanya Sastry 2023-11-21 21:37:55 +00:00
parent 5b2142b9c7
commit be50a4c0ca

View file

@ -86,12 +86,6 @@ class ParserHooks implements
* @inheritDoc
*/
public function onParserOutputPostCacheTransform( $parserOutput, &$text, &$options ): void {
if ( $parserOutput->getExtensionData( 'DiscussionTools-tocInfo' ) !== null ) {
// Since getText() could be called multiple times, return if we have
// already processed this ParserOutput object
return;
}
// NOTE: This is a temporary proxy for 'isPreview' flag in ParserOptions.
// It is not clear whether 'editsectionEditLinks' is disabled only for previews.
$isPreview = empty( $options['enableSectionEditLinks'] );