-
Notifications
You must be signed in to change notification settings - Fork 205
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
Resized images not deleted on deleting original image in wp-admin #115
Comments
This library generates images on the fly and does not save its data in DB. So deleting the files from the uploads folder may be risky if not done correctly. |
I see. There is limited data to work with, but I'm thinking of:
|
I tried it with this, and it worked. |
I've made a PR for this quite some time ago #112 - it updates attachment metadata with the new sizes, so WP is aware of them and deletes when needed |
Can that PR be merged please @syamilmj? |
When an image is deleted via the wp-admin media library, all the sizes generated by WordPress are deleted, but not the sizes generated by the Aqua-Resizer. This leaves a whole lot of junk on the filesystem.
Is it possible to make a function that hooks into wp_delete_attachment to let Aqua-Resizer cleanup after itself?
The text was updated successfully, but these errors were encountered: