Flush cache when user picture changes

j0sh - July 8, 2008 - 13:53
Project:ImageCache
Version:5.x-2.2
Component:Code
Category:bug report
Priority:normal
Assigned:smk-ka
Status:closed
Description

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?

#1

smk-ka - July 9, 2008 - 16:28
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.

AttachmentSize
imagecache-user.patch 889 bytes

#2

j0sh - July 22, 2008 - 07:19

this work correctly for me

#3

alphageekboy - July 24, 2008 - 08:33

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

#4

NeoID - July 31, 2008 - 16:47
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

alphageekboy - August 11, 2008 - 01:04

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

#6

NeoID - October 5, 2008 - 09:57

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

Babalu - October 5, 2008 - 09:35

great

#8

Babalu - October 5, 2008 - 09:57
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

smk-ka - October 6, 2008 - 12:21

Re-rolled for HEAD / 6.x branch.

AttachmentSize
imagecache-user-HEAD.patch 878 bytes

#10

drewish - October 7, 2008 - 23:38
Status:reviewed & tested by the community» needs review

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

AttachmentSize
imagecache_279861.patch 947 bytes

#11

drewish - October 8, 2008 - 01:38
Status:needs review» fixed

went ahead and committed the patch from #10.

#12

Anonymous (not verified) - October 22, 2008 - 01:41
Status:fixed» closed

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

#13

sun - December 1, 2008 - 23:07
Version:6.x-1.0-alpha2» 5.x-2.2
Status:closed» 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

drewish - December 1, 2008 - 23:38

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

#15

sun - December 4, 2008 - 01:34
Status:patch (to be ported)» reviewed & tested by the community

Re-rolled.

AttachmentSize
imagecache-DRUPAL-5--2.user_.patch 904 bytes

#16

drewish - January 5, 2009 - 22:30
Status:reviewed & tested by the community» fixed

thanks. committed to DRUPAL-5--2

#17

System Message - January 19, 2009 - 22:40
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.