Index: trunk/extensions/FlaggedRevs/FlaggedRevsPage.php |
— | — | @@ -371,7 +371,7 @@ |
372 | 372 | * @param Revision $rev |
373 | 373 | */ |
374 | 374 | private function approveRevision( $rev ) { |
375 | | - global $wgUser, $wgParser; |
| 375 | + global $wgUser, $wgParser, $wgRevisionCacheExpiry, $wgMemc;; |
376 | 376 | # Get the page this corresponds to |
377 | 377 | $title = $rev->getTitle(); |
378 | 378 | |
— | — | @@ -517,6 +517,13 @@ |
518 | 518 | # Update flagged revisions table |
519 | 519 | $dbw->replace( 'flaggedrevs', array( array('fr_page_id','fr_rev_id') ), $revset, __METHOD__ ); |
520 | 520 | $dbw->commit(); |
| 521 | + |
| 522 | + # Kill any text cache |
| 523 | + if( $wgRevisionCacheExpiry ) { |
| 524 | + $key = wfMemcKey( 'flaggedrevisiontext', 'revid', $rev->getId() ); |
| 525 | + $wgMemc->delete( $key ); |
| 526 | + } |
| 527 | + |
521 | 528 | # Update recent changes |
522 | 529 | $this->updateRecentChanges( $title, $dbw, $rev, $this->rcid ); |
523 | 530 | |