Kaldari has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/57183


Change subject: (bug 44056) Making sure user cache is invalidated by new 
notifications
......................................................................

(bug 44056) Making sure user cache is invalidated by new notifications

Change-Id: I14491c1ba987bbf429ae9afcb7c32a2a5455e21f
---
M controller/NotificationController.php
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Echo 
refs/changes/83/57183/1

diff --git a/controller/NotificationController.php 
b/controller/NotificationController.php
index fce6e98..699517b 100644
--- a/controller/NotificationController.php
+++ b/controller/NotificationController.php
@@ -174,6 +174,7 @@
         */
        public static function resetNotificationCount( $user, $dbSource = 
DB_SLAVE ) {
                self::getNotificationCount( $user, false, $dbSource );
+               $user->invalidateCache();
        }
 
        /**

-- 
To view, visit https://gerrit.wikimedia.org/r/57183
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I14491c1ba987bbf429ae9afcb7c32a2a5455e21f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Echo
Gerrit-Branch: master
Gerrit-Owner: Kaldari <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to