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

smk-ka’s picture

Title: i need to flush manually? » Flush cache when user picture changes
Version: 5.x-2.1 » 5.x-2.x-dev
Assigned: Unassigned » smk-ka
Category: support » bug
Priority: Critical » Normal
Status: Active » Needs review
FileSize
889 bytes

Please test attached patch.

j0sh’s picture

this work correctly for me

alphageekboy’s picture

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

NeoID’s picture

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!

alphageekboy’s picture

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

NeoID’s picture

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

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...

Babalu’s picture

great

Babalu’s picture

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

smk-ka’s picture

Version: 6.x-1.0-alpha1 » 6.x-1.0-alpha2
FileSize
878 bytes

Re-rolled for HEAD / 6.x branch.

drewish’s picture

Status: Reviewed & tested by the community » Needs review
FileSize
947 bytes

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

drewish’s picture

Status: Needs review » Fixed

went ahead and committed the patch from #10.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

sun’s picture

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)

drewish’s picture

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

sun’s picture

Status: Patch (to be ported) » Reviewed & tested by the community
FileSize
904 bytes

Re-rolled.

drewish’s picture

Status: Reviewed & tested by the community » Fixed

thanks. committed to DRUPAL-5--2

Status: Fixed » Closed (fixed)

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