WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#28957 closed defect (bug) (invalid)

Media uploader is confused

Reported by: rigpa1 Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Media Keywords: close
Focuses: Cc:

Description

If I upload an image and insert into a post/page, evaluate it, decide I need a few image changes, delete the old image from the media library, upload the image again (SAME NAME), then WordPress inserts the OLD image, not the new one. Every single time!

I always delete the old image before uploading the new because I dont want 100 versions of any image in the library, so maybe this is a cache problem??? Maybe the old image is still cached (for a very long time) ???

This has been so for a long time and the only way to go around it is to rename the image to something that WordPress imageuploader hasnt seen before and then upload it again.

Change History (3)

#1 @SergeyBiryukov
6 years ago

  • Keywords close added

This appears to be a caching issue with your web server, it's probably configured to set Cache-Control or Expires HTTP headers for static files.

WordPress itself does not send these headers for images, but a caching plugin might do that. I'd suggest trying the support forums for troubleshooting.

#2 in reply to: ↑ description @Shapeshifter 3
6 years ago

Replying to rigpa1:

If I upload an image and insert into a post/page, evaluate it, decide I need a few image changes, delete the old image from the media library, upload the image again (SAME NAME), then WordPress inserts the OLD image, not the new one. Every single time!

I always delete the old image before uploading the new because I dont want 100 versions of any image in the library, so maybe this is a cache problem??? Maybe the old image is still cached (for a very long time) ???

This has been so for a long time and the only way to go around it is to rename the image to something that WordPress imageuploader hasnt seen before and then upload it again.

I've been going through the same image editing process as yourself for over 2 years. During that time period, I ALWAYS delete my cache (using a plugin) directly AFTER I delete the old image; and THEN upload the new edited image. Most of the time, I continue to use the same name.

#3 @wonderboymusic
6 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

3 months of no more feedback, seems like an isolated static cache issue

Note: See TracTickets for help on using tickets.