jglamine / calvinwebprint

A friendlier interface to the printing system at Calvin College.
https://calvinwebprint.com
MIT License
6 stars 7 forks source link

Don't store uploaded files for so long. #29

Closed jglamine closed 9 years ago

jglamine commented 9 years ago

The database is more than 5GB and is almost taking up the entire disk. This space all comes from files which were uploaded. We need to not keep files around for so long.

As a temporary measure, we should decrease the number of files kept per user. I think it's 5 right now - decrease this to two.

Are files deleted after being sent to cloudprint? Check on this and report back in the comments. If they're not, we should make sure they are deleted.

As a more permanent solution, we should write a script which deletes jobs older than 24 hours. This script should be designed to run from a daily cronjob.