Closed (won't fix)
Project:
ImageCache
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 Oct 2010 at 14:04 UTC
Updated:
2 Jun 2012 at 23:30 UTC
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
Comment #1
eugenmayer commentedThats 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.
Comment #2
rjbrown99 commented+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.
Comment #3
fizk commentedCould be done by creating a new module.