r22446 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r22445‎ | r22446 | r22447 >
Date:02:36, 26 May 2007
Author:aaron
Status:old
Tags:
Comment:
*Save cache while at it
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.php (modified) (history)
  • /trunk/extensions/FlaggedRevs/FlaggedRevsPage.body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php
@@ -88,7 +88,7 @@
8989 $wgGroupPermissions['editor']['review'] = true;
9090 $wgGroupPermissions['editor']['autopatrol'] = true;
9191 $wgGroupPermissions['editor']['patrol'] = true;
92 -$wgGroupPermissions['editor']['unwatched'] = true;
 92+$wgGroupPermissions['editor']['unwatchedpages'] = true;
9393 $wgGroupPermissions['editor']['autoconfirmed'] = true;
9494
9595 # Defines extra rights for advanced reviewer class
Index: trunk/extensions/FlaggedRevs/FlaggedRevsPage.body.php
@@ -354,6 +354,8 @@
355355
356356 # Clear the cache...
357357 $this->page->invalidateCache();
 358+ # Might as well save the cache
 359+ $parserCache->save( $poutput, $article, $wgUser );
358360 # Purge squid for this page only
359361 $this->page->purgeSquid();
360362
@@ -400,6 +402,8 @@
401403
402404 # Clear the cache...
403405 $this->page->invalidateCache();
 406+ # Might as well save the cache
 407+ $parserCache->save( $poutput, $article, $wgUser );
404408 # Purge squid for this page only
405409 $this->page->purgeSquid();
406410