r104695 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r104694‎ | r104695 | r104696 >
Date:15:37, 30 November 2011
Author:petrb
Status:deferred
Tags:
Comment:
Remove cache in case that db is updated so that next time it loads correct value
Modified paths:
  • /trunk/extensions/OnlineStatusBar/OnlineStatusBar.status.php (modified) (history)

Diff [purge]

Index: trunk/extensions/OnlineStatusBar/OnlineStatusBar.status.php
@@ -144,6 +144,7 @@
145145 'username' => $wgUser->getName(),
146146 'timestamp' => $dbw->timestamp(),
147147 );
 148+ self::setCache( $wgUser->getName(), '', ONLINESTATUSBAR_NORMAL_CACHE );
148149 $dbw->insert( 'online_status', $row, __METHOD__ );
149150 return false;
150151 }
@@ -186,6 +187,7 @@
187188 array( 'username' => $wgUser->getName() ),
188189 __METHOD__
189190 );
 191+ self::setCache( $wgUser->getName(), '', ONLINESTATUSBAR_NORMAL_CACHE );
190192 self::deleteOld();
191193 }
192194 return true;

Status & tagging log