Issue : When an image is deleted, the imagecache copies of the image are left on the filesystem.

Benefit : saves up space by removing useless files. When you have a site where users can post dozens of images on their personal blog or the forums, you end up with lots of unused images.

Implementation : The module could scan the files table at some point (use hook_cron() ?) for deleted entries and remove the corresponding imagecache versions using the imagecache_image_flush() function.
In the meantime, the entries in the module's tables should be removed too.

I would gladly implement this myself but I'm a newcomer to Drupal and won't have the required skills before some time.

Comments

eugenmayer’s picture

Project: WYSIWYG image upload - Inline images for your WYSIWYG » ImageCache
Version: 6.x-2.3 » 6.x-2.0-beta9

Thats a feature-request for imagecache rather, has nothing to do with wui at all. It could be also a core-file API request also.

WUI is only utilizing the Core FILE-API and the imagecache interface.

rjbrown99’s picture

Title: Clean up the imagecache copies when the original file is removed » Clean old imagecache copies when original file is removed or renamed
Version: 6.x-2.0-beta9 » 6.x-2.x-dev

+1, this is an issue - especially with numerous presets and generated images into the millions. Combine this with CDN customizations that change the image name upon update, and it quickly becomes a significant sprawl.

fizk’s picture

Status: Active » Closed (won't fix)

Could be done by creating a new module.