Technical background
In T368151 we added a central table, cuci_temp_edit, to keep track of which wikis have been recently edited by a temporary user from a particular IP address.
The table records the IP address, wiki and timestamp of the latest edit (code).
CheckUser already updates the cu_changes table whenever an edit is saved, via RecentChangeSaveHandler::onRecentChange_save. It uses a service method CheckUserInsert::updateCheckUserData.
What needs doing
The service and hook handler can be adapted to update cuci_temp_edit. Note that we should:
- Only record contributions from temporary users
- Only record edits
- Just update the timestamp if a row for the same IP/wiki already exists in the table
- Refer to the cuci_wiki_map table for the ID of the wiki
- Consider placing this update in a job or DeferredUpdate