• Resolved garnergrows

    (@garnergrows)


    I am having a recurring issue with images in my media library. I am updating a site created by a previous admin who used a lot of copyrighted images, so I am trying to replace them with new images licensed under Creative Commons. I want to use the same filenames for the new images because the naming format helps me keep things organized.

    The problem is, even though I delete the old image, and then upload the new one with the same name, the image never updates and still shows the old image. If I change the name of the file then it shows correctly, but I really don’t want to rename them! My first thought was that the images were just cached on my browser, so I cleared my cache, but the images are still showing the old versions. I tried different browsers and different devices with the same result.

    I tried deleting the images via FTP instead of with the WordPress dashboard and still, same thing. When I examine the newly uploaded files via FTP, it is clear by comparing file size that the new image IS there, but for some reason I am still seeing the old image. I am stumped!

    This happens EVERY time I upload a new image under an old filename, but an example can be found at https://garnergrows.jettesetliving.com/recipes/guacamole/.

    This page is using the image file: https://i0.wp.com/garnergrows.jettesetliving.com/wp-content/uploads/recipes_guacamole.jpg, which has been changed and uploaded with the same name as the old image.

    The old image looked like this: https://i0.wp.com/garnergrows.jettesetliving.com/wp-content/uploads/recipes_guacamole3.jpg

    The new image SHOULD look like this: https://i0.wp.com/garnergrows.jettesetliving.com/wp-content/uploads/recipes_guacamole2.jpg

    When I view these 3 images in FTP, recipes_guacamole.jpg and recipes_guacamole2.jpg have matching file size (126.6kb), and recipes_guacamole3.jpg does not (55.5kb). But when I view the images in any browser or device, recipes_guacamole.jpg visually matches recipes_guacamole3.jpg instead.

    Am I just nuts? What is going on here?

    I am running WordPress 5.9.2

    Your help will be much appreciated!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • That could be because you have jetpack enabled. Deactivate jetpack then use plugin https://www.ads-software.com/plugins/enable-media-replace/ for replacing. then once your replacement is done then activate the jetpack again and clear all the jetpack cache.

    You might need to force reload the page to see the updated image due to browser cache.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Unfortunately, replacing images with files of the same name will not upload the new images to Jetpack’s CDN. You’ll need to ask the Jetpack folks to remove them from their cache. https://www.ads-software.com/support/plugin/jetpack/

    Thread Starter garnergrows

    (@garnergrows)

    Well, Jetpack was definitely the culprit! I think it is crazy that after 7 years worth of complaints about this issue, Jetpack developers have not bothered to add in the ability to purge your own cache.

    I simply disabled the caching in Jetpack. The only reason I have Jetpack installed is because my theme requires it. It seems like the Jetpack plugin causes more problems that solutions for me!

    Thanks for the prompt responses!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Images uploaded with same name as previously deleted images not updating’ is closed to new replies.