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
Comment | File | Size | Author |
---|---|---|---|
#6 | imagecache_447402.patch | 1.09 KB | drewish |
Comments
Comment #1
kevster111 CreditAttribution: kevster111 commentedits not a refresh issue?
Comment #2
superdorx CreditAttribution: superdorx commentedI 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?
Comment #3
superdorx CreditAttribution: superdorx commentedSorry for the duplicate. See above =)
Comment #4
drewish CreditAttribution: drewish commentedwait what are you using for the image upload? the user.module? or imagefield?
Comment #5
superdorx CreditAttribution: superdorx commentedUsing 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.
Comment #6
drewish CreditAttribution: drewish commentedHumm 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.
Comment #7
drewish CreditAttribution: drewish commentedcommitted to HEAD.
Comment #8
superdorx CreditAttribution: superdorx commentedAfter 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.
Comment #9
drewish CreditAttribution: drewish commentedoh, i'm not sure how filefield path operates so that very well could be part of the problem.