Caching is complicated and should be avoided when possible. The WatchstarGateway currently implements a custom and error prone cache to avoid issuing redundant requests when searching for a page. For example, if a user types "ABCDEF" slowly and then presses backspace, the watchstar status for each result is already known and cached and so can be presented immediately. This task is to remove all of that cache code at the expense of this functionality. If wanted, a ticket may be opened against the underlying MediaWiki API so that the browser can do caching intelligently for us.
Please test on the beta cluster.
- Make sure watchstar is functional. It can show up in Special:Nearby, search and Special:Watchlist
- Check that when the Special:Watchlist is rendered that no API requests are made to the server
- When searching the API as a logged in user, there should be API hits for the watchstar on every keystroke