Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script to vacuum the uploads directory #1

Open
GoogleCodeExporter opened this issue Aug 4, 2015 · 2 comments
Open

Script to vacuum the uploads directory #1

GoogleCodeExporter opened this issue Aug 4, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

The uploads directory will accumulate files forever, even if the file is not 
used any more.
One way to fix this is a vacuum script that would be run from CRON.

This would remove any files that are not in the files table, and report any 
files that exist but are not in the table.

Original issue reported on code.google.com by [email protected] on 7 Oct 2011 at 11:20

@GoogleCodeExporter
Copy link
Author

Original comment by [email protected] on 7 Oct 2011 at 11:49

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

Another way to prevent this situation, is to hook into the delete method of the 
file object and remove the file from the filesystem as well. This prevents the 
accumulation of orphan files. Will look into this.

Original comment by [email protected] on 7 Oct 2011 at 2:29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant