My workflow is sometimes the following:

  1. Delete many images from the media library at once (named for example, 01.jpg, 02.jpg, 03.jpg…).
  2. Re-upload a series of images with the same file names (01.jpg, 02.jpg, 03.jpg…).

The media library retains and display shows the old images as thumbnails and previews, even though they are deleted.

Obviously this problem is avoidable by adding images with distinct file names, but I wondered if there were some better way that works regardless of naming convention. Or something else that I’m completely missing?

Thanks.

3 s
3

@t31os Thanks for your response. I’m
sure it is just my browser caching the
images. But (I should have specified)
I’m not the only user. I’d prefer not
to have to tell my users to refresh
every time they delete something or
the clunkiness of building in a page
refresh as part of image deletion.

But, that’s just why we have browser caching — to prevent the same image from loading everytime we call it again. The browser sees it as the same image.

You can make a little workaround by calling the image like this:
http://yoursite.com/images/01.jpg?v1 and http://yoursite.com/images/01.jpg?v2 – this would load the same image 2 times.

Leave a Reply

Your email address will not be published. Required fields are marked *