r66862 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r66861‎ | r66862 | r66863 >
Date:03:52, 25 May 2010
Author:tisane
Status:deferred
Tags:
Comment:
implement bugzilla suggestions in ref to caching and cause caches to clear when table populated via special page
Modified paths:
  • /trunk/extensions/PureWikiDeletion/PureWikiDeletion.hooks.php (modified) (history)
  • /trunk/extensions/PureWikiDeletion/SpecialPureWikiDeletion.php (modified) (history)

Diff [purge]

Index: trunk/extensions/PureWikiDeletion/SpecialPureWikiDeletion.php
@@ -614,6 +614,9 @@
615615 ,array("blank_page_id" => $myId));
616616 if (!$checkPresence){
617617 $dbw->insert('blanked_page',$blank_row);
 618+ $mTitle=Title::newFromID($myId);
 619+ Article::onArticleDelete( $mTitle );
 620+ $mTitle->resetArticleID( 0 );
618621 }
619622 }
620623 }
Index: trunk/extensions/PureWikiDeletion/PureWikiDeletion.hooks.php
@@ -65,6 +65,7 @@
6666 array( 'rc_this_oldid' => $blankRevId
6767 ));
6868 Article::onArticleDelete( $mTitle );
 69+ $mTitle->resetArticleID( 0 );
6970 if ($user->getOption( 'watchblank' )){
7071 $myWatched=WatchedItem::fromUserTitle($user,$mTitle);
7172 $myWatched->addWatch();

Status & tagging log