Hi people,
I need some help with QImageControl
Each time a member upload a picture the old one is replaced by the new one. The thing is that they do have the samename.
membre with id 5
will upload 5.jpg each time but the pic might be different.
Qimagecontrol cache check if a cache exists for this imagename. Which is the case as the user used to have a pic before. But the pic is not the same anymore.
So how to ask imagecontrol to check for instance if its the same size to create again the cache.
Another work around wouldbe to suffix with stamp the picture name. Then at each upload it would be 5_2322322.jpg for instance. This will work as the name will be different but what will happens with old pics.
I will have to remove from cache only not used picture.
Also cleaning the whole cache would not be interesting as it'll cache again all pics for all user even if only one have changed his pic.
Third solution one cache folder per user, i don't know the efficiency of this method does anyone has implemented it ?
What are performances for this ?
Thanks to all for any resopnse.