Custom avatar caching issue

Report bugs found in Poker Mavens

Custom avatar caching issue

Postby enkindle » Fri Jul 12, 2013 3:45 am

When updating a user's AvatarFile option, the Crc parameter does not change. Users have to clear their browser cache to get the image to change.
enkindle
 
Posts: 9
Joined: Thu Jul 11, 2013 11:03 pm

Re: Custom avatar caching issue

Postby Kent Briggs » Fri Jul 12, 2013 9:31 am

enkindle wrote:When updating a user's AvatarFile option, the Crc parameter does not change. Users have to clear their browser cache to get the image to change.


Yeah, that's a known issue as the crc is calculated on the group of communal avatars and thus doesn't know about changes to individual custom avatars. I'll revisit that and see if I can find a solution.
Kent Briggs - [email protected]
Briggs Softworks - http://www.briggsoft.com
Kent Briggs
Site Admin
 
Posts: 3765
Joined: Wed Mar 19, 2008 8:47 pm

Re: Custom avatar caching issue

Postby enkindle » Sat Jul 13, 2013 12:28 pm

A fair quick fix would be to just hash the file path\name of the AvatarFile file and use that.
enkindle
 
Posts: 9
Joined: Thu Jul 11, 2013 11:03 pm

Re: Custom avatar caching issue

Postby Kent Briggs » Sat Jul 13, 2013 1:08 pm

enkindle wrote:A fair quick fix would be to just hash the file path\name of the AvatarFile file and use that.


The path isn't known to the client. It just passes in the player name and the server does the lookup locally. The fix will require adding a new field to track crc by player and pass that in to each table along with their other data so it can be included in the image request back to the server.
Kent Briggs - [email protected]
Briggs Softworks - http://www.briggsoft.com
Kent Briggs
Site Admin
 
Posts: 3765
Joined: Wed Mar 19, 2008 8:47 pm

Re: Custom avatar caching issue

Postby enkindle » Sat Jul 13, 2013 5:46 pm

Ahh. I see.
enkindle
 
Posts: 9
Joined: Thu Jul 11, 2013 11:03 pm

Re: Custom avatar caching issue

Postby Kent Briggs » Thu Jul 18, 2013 12:22 pm

Kent Briggs - [email protected]
Briggs Softworks - http://www.briggsoft.com
Kent Briggs
Site Admin
 
Posts: 3765
Joined: Wed Mar 19, 2008 8:47 pm


Return to Bugs

Who is online

Users browsing this forum: No registered users and 4 guests

cron