Hi,
Im prolly not posting in the correct place ..
I have a cache problem with my image gallerys and members image in their profile.
If a member changes their picture (using php + gd script) then hit the link to view thier profile the old image shows untill a page refresh is performed.
Same when they upload an image, I display a preview of the uploaded image with the success message, this also shows cached images often.
Can this be stopped?
Thanks
Cache problems
Moderator: General Moderators
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
Change the filename. For instance, phpBB stores the images as a hash result. What you hash could be the results of microtime() for example.
-
bob_the _builder
- Forum Contributor
- Posts: 131
- Joined: Sat Aug 28, 2004 12:25 am
Ahh, I have it so it changes the image name to the users id + filetype prior to storing it in the database.
When they update it, basiaclly the existing image gets unlinked and updates the name with the userid + file extension.
Is there away to stop the cache problem keeping the naming stucture of the uploads.
Thanks
When they update it, basiaclly the existing image gets unlinked and updates the name with the userid + file extension.
Is there away to stop the cache problem keeping the naming stucture of the uploads.
Thanks