Page MenuHomePhabricator

Have a cron job delete files that haven't been modified in the last X days / months in /data/scratch
Open, LowPublic

Description

It's supposed to be ephemeral, let's make it so.

Event Timeline

yuvipanda raised the priority of this task from to Needs Triage.
yuvipanda updated the task description. (Show Details)
yuvipanda subscribed.
yuvipanda renamed this task from Have a cron job delete files that haven't been modified in the last X days / months to Have a cron job delete files that haven't been modified in the last X days / months in /data/scratch.Jun 19 2015, 11:50 AM
yuvipanda set Security to None.
yuvipanda added subscribers: faidon, coren.

For mwoffliner, which would use /data/scratch mainly as a picture cache, this looks interesting because I do need to make that cleaning job anyway. If you would delete files which were not *accessed* within X months, this would be even better because this would mean mwoffliner does not need to touch pictures in the cache (to update their last modification date and as a consequence avoid the deletion during the cron process).

chasemp subscribed.

Just FYI, no need anymore on MWoffliner side as we use an online object cache meanwhile.