mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-30 18:45:07 +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 |
||
---|---|---|
.. | ||
cache | ||
exception | ||
gateway | ||
iterator | ||
mapper | ||
AttributeManager.php | ||
BatchRowUpdate.php | ||
ContainmentSet.php | ||
DataOutputFormatter.php | ||
DbEmailBatch.php | ||
DbEmailBundler.php | ||
DeferredMarkAsReadUpdate.php | ||
DiffParser.php | ||
DiscussionParser.php | ||
EchoDbFactory.php | ||
EmailBatch.php | ||
EmailBundler.php | ||
EmailFormatter.php | ||
EventLogging.php | ||
NotifUser.php | ||
schemaUpdate.php | ||
UserLocator.php |