My community site allows users to upload there own avatar and also maintain there own picture gallery. Both of these features have Imagecache presets. The problem I am having is that when any of these images are updated it doesn't show the new image. Still showing the old version. I notice in the files/imagecache folder that these images just accumulate and dont delete old presets. I think this is causing the problem but cant be certain. I have setup the image files to be renamed to the user name. Can anyone offer a work around so that new imagecache presets get updated with the new image uploads?

Here is my setup:

- Imagefield 6.x-3.0
- FileField 6.x-3.0
- FileField Path 6.x-1.1 (rename images to user-name)
- Imagecache

CommentFileSizeAuthor
#6 imagecache_447402.patch1.09 KBdrewish
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kevster111’s picture

its not a refresh issue?

superdorx’s picture

Status: Postponed (maintainer needs more info) » Active

I wish it were. I've been testing on multiple browsers and the problem is the same. When I upload an avatar, imagecache generates a thumbnail and a smaller thumbnail. When thumbs are click they open the original in a Lightbox. The original image(not from imagecache) shows the newly uploaded image but the thumbs generated by imagecache still show the old image previous. Am I the first to encounter this problem?

superdorx’s picture

Sorry for the duplicate. See above =)

drewish’s picture

Status: Active » Postponed (maintainer needs more info)

wait what are you using for the image upload? the user.module? or imagefield?

superdorx’s picture

Using image field Imagefield to upload. I haven't had any luck resolving this so far. I believe it is an Imagecache issue but can't be certain.

drewish’s picture

Title: new image uploads not showing updated imagecache preset » Not removing derivates for deleted filefield images.
Version: 6.x-2.0-beta9 » 6.x-2.x-dev
Component: imagecache_image module » Code
Category: support » bug
Status: Active » Needs review
FileSize
1.09 KB

Humm it looks like in the merger of filefield and imagefield the hook_imagefield_file() hook that we were using to get notifications about deleted files has been replaced by imagecache_file_delete(). Simple enough fix.

drewish’s picture

Status: Needs review » Fixed

committed to HEAD.

superdorx’s picture

After applying the patch I flushed all imagecache presets, cleared Drupal cache and PHP cache. Still having the same issue. Patch doesn't resolve the issue. Only the original displays the new photo uploaded. The imagecache presets still show the old thumb. Could it be that FileField Path is interfering with this process when renaming image files? Not sure what else it could be.

drewish’s picture

oh, i'm not sure how filefield path operates so that very well could be part of the problem.

Status: Fixed » Closed (fixed)

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