mediawiki-extensions-Echo/includes
Matthias Mullie 6bcece22cc Don't repopulate cache with potentially lagging DB data
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
2015-05-07 14:01:56 +02:00
..
cache [4] Add revision local cache holder object 2014-08-19 10:28:38 -07:00
exception Hygiene: Update method documentation & split exception to a file 2014-08-04 17:43:57 -07:00
gateway Add support to mark all as read for "sections" 2014-08-13 17:16:19 -07:00
iterator Use batch queries for users-watching-title 2014-08-15 10:44:55 -07:00
mapper Don't repopulate cache with potentially lagging DB data 2015-05-07 14:01:56 +02:00
AttributeManager.php Don't log missing user-locators 2015-03-09 23:41:00 +00:00
BatchRowUpdate.php Remove unused default value 2015-04-13 13:56:38 -07:00
ContainmentSet.php Remove unused code and fix missing/broken documentation 2014-06-04 04:54:00 +00:00
DataOutputFormatter.php Allow multiple target pages per event 2015-03-31 07:56:52 +00:00
DbEmailBatch.php Remove unused code and fix missing/broken documentation 2014-06-04 04:54:00 +00:00
DbEmailBundler.php Add email bundling function to Echo notification 2013-04-11 11:25:14 -07:00
DeferredMarkAsReadUpdate.php Mark notifications as read if they fail rendering 2014-09-08 14:22:10 -07:00
DiffParser.php Remove unused code and fix missing/broken documentation 2014-06-04 04:54:00 +00:00
DiscussionParser.php Merge "Add fallback for enotiftalk in generateEventsForRevision" 2015-05-01 20:49:16 +00:00
EchoDbFactory.php Hygiene: Move master/slave code to MWEchoDbFactory 2014-08-22 14:01:57 -07:00
EmailBatch.php Remove obvious function-level profiling 2015-02-10 14:32:58 -08:00
EmailBundler.php Use MailAddress::newFromUser() 2014-09-21 18:25:14 -07:00
EmailFormatter.php Remove unused code and fix missing/broken documentation 2014-06-04 04:54:00 +00:00
EventLogging.php efLogServerSideEvent is deprecated 2014-08-21 15:19:27 +02:00
NotifUser.php Don't repopulate cache with potentially lagging DB data 2015-05-07 14:01:56 +02:00
schemaUpdate.php Remove unused code and fix missing/broken documentation 2014-06-04 04:54:00 +00:00
UserLocator.php Use batch queries for users-watching-title 2014-08-15 10:44:55 -07:00