Page MenuHomePhabricator

Create periodic background task that limits maximum data stored offline.
Closed, ResolvedPublic


At the moment we don't impose a limit on the amount of data that the app stores offline. This is because we allow the user to save reading lists offline, and give the user control over which lists to save or not save.

However, with our new functionality of saving talk pages offline, which is done automatically and transparently to the user, we'll need to impose an automatic limit on the amount of talk page data saved offline.

This can be another RecurringTask() that we put in our RecurringTasksExecutor, to be run daily, which takes a directory listing of our local storage, and deletes the oldest entries (by date) up to a specified size limit, say 1 GB.