Updating Avatar

Permalink
When I update my avatar on this site under Edit Profile, the avatar at the top of the page is not changed - which made me go back and do it over a couple af times until I gave up - and then saw, that my avatar *had* been updated om my posting. :)

SorenWerk
 
Mnkras replied on at Permalink Best Answer Reply
Mnkras
probably a cache issue
pixelfish replied on at Permalink Reply
pixelfish
Dont think its cache. The 'save' button doesnt actually change and the page does not refresh.
frz replied on at Permalink Reply
frz
mnkras is right. its just a cached copy locally.

the avatar picker is flash so its buttons don't "feel" like html ones, there is a "Saved" alert that shows up in yellow on the page. The avatar updates, what we really should be doing is appending the filename reference with some unique get var so it doesn't cache - but meh.
Mnkras replied on at Permalink Reply
Mnkras
franz, actually there is no yellow thing saying its updated, in version 5.4.1 andrew added a javascript alert popup which is insanely annoying
5fly replied on at Permalink Reply
5fly
A little late to the discussion.... but did anyone find a way around this?
adajad replied on at Permalink Reply
adajad
If you update your avatar here at c5.org it might take a while because of caching.

You should also clear your browser cache.
alexbrandsen replied on at Permalink Reply
Extremely late to the discussion myself, but ran into this and solved it by adding

header( 'Expires: Sat, 26 Jul 1997 05:00:00 GMT' ); 
header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' ); 
header( 'Cache-Control: no-store, no-cache, must-revalidate' ); 
header( 'Cache-Control: post-check=0, pre-check=0', false ); 
header( 'Pragma: no-cache' );


to the save_thumb() function in concrete/controllers/profile/avatar.php . This will force the browser to reload all content and not use the cache. Hope it helps someone!