The purgeOldData.php maintenance script in CheckUser contains code that purges data from the recentchanges table if the table stores the IP address used for edits.
Instead of having this code in CheckUser, we should instead have this as a maintenance script in core so that it can be used even if CheckUser is not installed. To ensure that the purgeOldData.php maintenance script is unchanged, we can call this new script as a child maintenance script.
While a job exists to purge this data, this job may not be run frequently enough on small wikis (as this only run 1/10 times that an recent changes row is saved to the database. Running the script every day will ensure that it is definitely run at least once a day (as is done through running purgeOldData.php on WMF wikis every day).
Acceptance criteria
- Create a new maintenance script that purges expired rows from the recentchanges table.
