ApiSetNotificationTimestamp: Make entirewatchlist more efficient
authorRoan Kattouw <roan.kattouw@gmail.com>
Thu, 3 Jan 2019 01:41:04 +0000 (17:41 -0800)
committerRoan Kattouw <roan.kattouw@gmail.com>
Wed, 16 Jan 2019 22:06:46 +0000 (14:06 -0800)
commitebcac0053eeed3fc28b8f326d111933345061803
treea8dd7167699881f67872512c641a2d6c000c4844
parente996ac48bf7ebdc16f469e8f67a16177d8551af7
ApiSetNotificationTimestamp: Make entirewatchlist more efficient

Use WatchedItemStore's built-in feature for clearing the entire
watchlist when no timestamp is specified. When a timestamp is specified,
this will still use the inefficient page-by-page method, which I'll
improve in a follow-up commit.

Bug: T207941
Change-Id: I2008ff89c95fe6f66a3fd789d2cef0e8fe52bd93
RELEASE-NOTES-1.33
includes/api/ApiSetNotificationTimestamp.php