mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-27 17:20:40 +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__
|
||||
);
|
||||
|
||||
$wgMemc->set($memcKey, $count, 86400);
|
||||
$wgMemc->set( $memcKey, $count, 86400 );
|
||||
|
||||
return $count;
|
||||
}
|
||||
|
@ -61,6 +61,7 @@ class EchoNotificationController {
|
|||
*/
|
||||
public static function resetNotificationCount( $user ) {
|
||||
self::getNotificationCount( $user, false );
|
||||
$user->invalidateCache();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue