When deleting an image from the gallery and upload another picture with the same file name the result is that the new image is not seen in the gallery display because the old miniatures are fetched from image cache are still displayed.

Checked the files on te server and yes:
- gallery files are correct (old images were removed, the new images are present)
- imagecache folders still contain the thumbnails of the images that were removed. Imagecache did not remake the thumbnails when uploading the new picture.

So we end up with a mismatch between the gallery and imagecache files.

Is this the normal behaviour of imagecache? That would mean that the cache is expanding all the time and a flush operation clears the full cache.

Or should Gallery_assist maybe clear the cache entry when an image is removed from te gallery?

As it is now, it seems that users must be very careful not to resuse filenames when they upload.

Or maybe I'm doing something wrong?

Comments

skylord’s picture

Subscribing. Very annoying behaviour!