mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-30 18:45:07 +00:00
Invalidate user cache when resetting notification count, should resolve caching issues.
Change-Id: I00fb44ddeb258a08a9fea6843aaa9e27b1a979d1
This commit is contained in:
parent
bca97d8da7
commit
43d71e0d29
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue