Index: trunk/phase3/includes/diff/DifferenceInterface.php |
— | — | @@ -421,8 +421,10 @@ |
422 | 422 | $wgOut->wrapWikiMsg( "<div class='mw-warning plainlinks'>\n$1\n</div>\n", 'rev-deleted-text-view' ); |
423 | 423 | } |
424 | 424 | |
| 425 | + $pCache = true; |
425 | 426 | if( !$this->mNewRev->isCurrent() ) { |
426 | 427 | $oldEditSectionSetting = $wgOut->parserOptions()->setEditSection( false ); |
| 428 | + $pCache = false; |
427 | 429 | } |
428 | 430 | |
429 | 431 | $this->loadNewText(); |
— | — | @@ -441,6 +443,13 @@ |
442 | 444 | $wgOut->addHTML( htmlspecialchars( $this->mNewtext ) ); |
443 | 445 | $wgOut->addHTML( "\n</pre>\n" ); |
444 | 446 | } |
| 447 | + } elseif( $pCache ) { |
| 448 | + $pOutput = ParserCache::singleton()->get( new Article( $this->mTitle ), $wgUser ); |
| 449 | + if( $pOutput ) { |
| 450 | + $wgOut->addHtml( $pOutput->getText() ); |
| 451 | + } else { |
| 452 | + $wgOut->addWikiTextTidy( $this->mNewtext ); |
| 453 | + } |
445 | 454 | } else { |
446 | 455 | $wgOut->addWikiTextTidy( $this->mNewtext ); |
447 | 456 | } |