mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-24 07:54:13 +00:00
6bcece22cc
getNotificationCount & getLastUnreadNotificationTime have an argument $cached that allows cache to be bypassed & read from DB. That result is then stored to cache. In practice, it seems to be used only for cache invalidation. getLastUnreadNotificationTime didn't allow to specify the DB to be read from, and EchoNotificationMapper::fetchUnreadByUser only read from slave. So when we wanted to invalidate the cache, we would end up immediately repopulating it with data from a (potentially and likely) lagging slave. I've made it accept the DB type, similar to getNotificationCount. Bug: T98421 Change-Id: Ie4b09eeb04b9827b454cb2d92ee8c674bdd59a19 |
||
---|---|---|
.. | ||
AbstractMapper.php | ||
EventMapper.php | ||
NotificationMapper.php | ||
TargetPageMapper.php |