r108436 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r108435‎ | r108436 | r108437 >
Date:17:49, 9 January 2012
Author:nikerabbit
Status:ok
Tags:
Comment:
Roan says we must invalidate user caches too
Modified paths:
  • /trunk/extensions/Narayam/maintenance/FixNarayamDisablePref.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Narayam/maintenance/FixNarayamDisablePref.php
@@ -61,6 +61,13 @@
6262 __METHOD__ );
6363 $dbw->commit();
6464
 65+ foreach ( $ids as $id ) {
 66+ $user = User::newFromID( $id );
 67+ if ( $user ) {
 68+ $user->invalidateCache();
 69+ }
 70+ }
 71+
6572 wfWaitForSlaves( 10 );
6673 }
6774

Status & tagging log