WatchedItemStore: Update process cache when adding items
authorTimo Tijhof <krinklemail@gmail.com>
Wed, 2 Nov 2016 00:00:07 +0000 (00:00 +0000)
committerTimo Tijhof <krinklemail@gmail.com>
Wed, 2 Nov 2016 00:13:35 +0000 (00:13 +0000)
commit5783751e719a74fc2579556aa5b104e9129d11ad
treea278c69efeb783bf204195948091a90eb0d0d89b
parent196fc69ac0007306f3aa662dd2c861f07a73588f
WatchedItemStore: Update process cache when adding items

This way, when submitting POST to action=watch, the response will
not show "Unwatched" in the navigation 'content action' tabs.

This was previously the case on any wiki installation that has
more than 1 database as the skin would call User::isWatched(),
which would query stale data from a slave.

This doesn't yet account for the reverse use case (removing from
watchlist). That's to be addressed in a later commit.

Bug: T28292
Change-Id: Ie4b69c985815a77b70692db0c4dbf52e1a6a018d
includes/WatchedItemStore.php