jyushinx Posted February 18, 2007 Share Posted February 18, 2007 Hi, So this is the situation. I have an image manager which allows a user to manage pictures for a particular product. The images are listed in a radio list and there is an image preview to the right of this list. When the user selects a radio button, the corresponding image is displayed in the preview box. One of the functions I want to provide is the ability to move an image up or down in the list, since this controls the order the images will be displayed when viewed by a customer. This is where I am running into a problem. When the user selects the "Move Up" arrow, I take the selected image and the one above it and swap the names using PHP's rename. This all works fine. The problem is that following this, the user is redirected back to the image manager main window. Because they are the same image names, the browser simply uses the cache to redisplay the same images. You have to do a refresh to see the changes. For a solution, I was thinking along the lines of having some sort of javascript autorefresh on the page, but I wanted to get some more opinions. Thanks. Link to comment https://forums.phpfreaks.com/topic/39054-image-caching-issue/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.