Invalidate user cache when resetting notification count, should resolve caching issues.

Change-Id: I00fb44ddeb258a08a9fea6843aaa9e27b1a979d1
This commit is contained in:
Andrew Garrett 2012-08-15 16:36:57 +01:00
parent bca97d8da7
commit 43d71e0d29

View file

@ -26,7 +26,7 @@ class EchoNotificationController {
__METHOD__ __METHOD__
); );
$wgMemc->set($memcKey, $count, 86400); $wgMemc->set( $memcKey, $count, 86400 );
return $count; return $count;
} }
@ -61,6 +61,7 @@ class EchoNotificationController {
*/ */
public static function resetNotificationCount( $user ) { public static function resetNotificationCount( $user ) {
self::getNotificationCount( $user, false ); self::getNotificationCount( $user, false );
$user->invalidateCache();
} }
/** /**