Index: trunk/extensions/FlaggedRevs/FlaggedRevs.class.php |
— | — | @@ -531,10 +531,16 @@ |
532 | 532 | } |
533 | 533 | } |
534 | 534 | } |
535 | | - # Parse the new body, wikitext -> html |
536 | | - $options = self::makeParserOptions(); // default options |
537 | | - $parserOut = $wgParser->parse( $text, $title, $options, true, true, $id ); |
538 | | - # Stable parse done! |
| 535 | + # Parse the new body, wikitext -> html. Maybe use parser cache |
| 536 | + $options = self::makeParserOptions(); |
| 537 | + $parserOut = null; |
| 538 | + if( $title->getLatestRevID() == $id ) { |
| 539 | + $parserOut = ParserCache::singleton()->get( new Article( $title, 0 ), $options ); |
| 540 | + } |
| 541 | + if( !$parserOut ) { |
| 542 | + $parserOut = $wgParser->parse( $text, $title, $options, true, true, $id ); |
| 543 | + } |
| 544 | + |
539 | 545 | if ( $resetManager ) { |
540 | 546 | $incManager->clear(); // reset the FRInclusionManager as needed |
541 | 547 | } |