Download & Extend

Flush cache when user picture changes

Project:ImageCache
Version:5.x-2.2
Component:Code
Category:bug report
Priority:normal
Assigned:smk-ka
Status:closed (fixed)

Issue Summary

hi
when i upload a new avatar in my account, thumbs created with imagecache are not updated... i need to flush manually presets to show correct thumbs

how can i solve this problem?

Comments

#1

Title:i need to flush manually?» Flush cache when user picture changes
Version:5.x-2.1» 5.x-2.x-dev
Category:support request» bug report
Priority:critical» normal
Assigned to:Anonymous» smk-ka
Status:active» needs review

Please test attached patch.

AttachmentSizeStatusTest resultOperations
imagecache-user.patch889 bytesIgnored: Check issue status.NoneNone

#2

this work correctly for me

#3

I have seen a similar issue. The thumbnail eventually gets updated, but not immediately.

#4

Version:5.x-2.x-dev» 6.x-1.0-alpha1
Status:needs review» reviewed & tested by the community

Works perfectly, even with Drupal 6!

#5

This patch (5.x-2.x-dev) worked perfectly for me.

#6

Would it be possible to change the way this works?
The problem is that if I update my user picture through for example phpbb (bridged), it doesn't flush the cache and the imagecache-generated image remain the same :/
Imagecache should some way check on a gobal basis if the user picture is the newest.. don't know how, but maybe some of you do?

Edit: ...or there should be another way of trigging it to flush...

Edit: It gets automatically flushed once I visit my drupal profile...but I don't want to use it, but use the phpbb3-profile instead...

#7

great

#8

Version:6.x-1.0-alpha1» 6.x-1.0-alpha2

patching file imagecache.module
Hunk #1 FAILED at 484.
1 out of 1 hunk FAILED -- saving rejects to file imagecache.module.rej

#9

Re-rolled for HEAD / 6.x branch.

AttachmentSizeStatusTest resultOperations
imagecache-user-HEAD.patch878 bytesIgnored: Check issue status.NoneNone

#10

Status:reviewed & tested by the community» needs review

I think it'd be better to try and avoid a warning by using !empty().

AttachmentSizeStatusTest resultOperations
imagecache_279861.patch947 bytesIgnored: Check issue status.NoneNone

#11

Status:needs review» fixed

went ahead and committed the patch from #10.

#12

Status:fixed» closed (fixed)

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

#13

Version:6.x-1.0-alpha2» 5.x-2.2
Status:closed (fixed)» patch (to be ported)

http://drupal.org/project/cvs/67819?nid=67819&page=1&nid=67819

Patch was only committed to 6.x, but was for 5.x originally. (version changed in #4)

#14

well the patch no longer applies so it'll need a re-roll.

#15

Status:patch (to be ported)» reviewed & tested by the community

Re-rolled.

AttachmentSizeStatusTest resultOperations
imagecache-DRUPAL-5--2.user_.patch904 bytesIgnored: Check issue status.NoneNone

#16

Status:reviewed & tested by the community» fixed

thanks. committed to DRUPAL-5--2

#17

Status:fixed» closed (fixed)

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

nobody click here