Avatar

Another Bug in 2.3.7? Avatars (General)

by Micha ⌂, Saturday, November 26, 2016, 21:59 (2706 days ago) @ Magma
edited by Micha, Sunday, November 27, 2016, 13:30

Hi Magma,

When I press [CTRL]+[F5] it does show the right image but

Okay.

A user is uploading a new image, pressing save and then seeing the old image which is not right.

Yes, you are totally right!

Like I said before, in the whole time of using MLF I've never had to press [CTRL]+[F5] or clear the cache when changing an avatar until I updated recently.

Okay, but we don't touch the code. Thus, two reason are possible:
1. The caching function of the browser is changed e.g. by an update.
2. The caching function of SMARTY is changed.

Because you confirmed that [CTRL]+[F5] solves the problem, it is not likely that SMARTY is the source of the problem.

I don't fully know how it works but maybe if the newly uploaded avatar image is given a more unique filename when upload (userid-date-timeInHoursMinutesSeconds.jpg) would that alleviate a cache problem?

Yes, this should work and solves the problem.

/Micha

--
applied-geodesy.org - OpenSource Least-Squares Adjustment Software for Geodetic Sciences


Complete thread:

 RSS Feed of thread