Hi,

Image cache creates multiple copies of same image for example like image_0.jpg, image_1.jpg .. etc.
Even if the image is deleted from the database for a particular content that image is not being deleted from image cache folder.

Please someone can help us out from this situation.

Comments

hexblot’s picture

Assigned: amarbijay » Unassigned
Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)

From my experience, that behavior occurs when you upload the same image on a different node ( ie create a node using image.jpg, then create another node using the same image.jpg file ). When imagefield finds the filename in use, it creates a different one.

Much more information is required to reply to this question in full -- such as :
* what fields are you using? ( imagefield, upload, image) ?
* when you say "deleted from the database" how do you mean? if you manually delete the record, Drupal is not aware of the file anymore, and thus will not do anything with it. Files are automatically deleted when their associated nodes are deleted ( eg if you have a node with an imagefield, when you delete the node the relevant images will be deleted as well ).
* you mentioned imagecache -- do the multiple copies occur within the imagecache directories ( myfilesdir/imagecache/mypreset/ )?

I'm afraid it's much more likely to be a bug in your setup/configuration, since a ton of people (me included) do not experience this problem.

amarbijay’s picture

Hi,
Thank you for your comments.

This issue was happening from custom written code and was already fixed.

mdupont’s picture

Status: Postponed (maintainer needs more info) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Rectified message