Nate1
11-01-2007, 05:52 PM
I have a User profile control Panel, with an Avatar. I Have code that will upload and replace the Current image of the User if they are using one, else place a new image there, currently an Users image will always have the same identifier, even if updated,
1_1User.jpg
and again 1_1User.jpg after update
Problem is when a new file is uploaded it will display the old image in cache.
I had a random number generator that would rename the files differently so any cached images would be ignored, but then I have to access the DB twice so I can delete the old image, is there a way I can clear the clients cache for a particular file name?
1_1User.jpg
and again 1_1User.jpg after update
Problem is when a new file is uploaded it will display the old image in cache.
I had a random number generator that would rename the files differently so any cached images would be ignored, but then I have to access the DB twice so I can delete the old image, is there a way I can clear the clients cache for a particular file name?