Media Library – Images not updating
-
Hello,
We are having an issue with the media library. Say we have image xyz.jpg uploaded, and then we delete the image and upload a different image also named xyz.jpg, then the image doesn’t update in the media library, on the front end, or anywhere for that matter.
After hours of research, we’ve come to this understanding:
“This issue occurs because WordPress doesn’t actually delete the physical file from the server when you delete an image from the media library. Instead, it just removes the reference to the file from the media library database.
When you upload a new file with the same name as the previously deleted file, WordPress detects that a file with that name already exists on the server and uses the existing file instead of creating a new one.”
We have looked through multiple other support tickets which point to the same issue and we have tried various fixes to try and rectify the issue – replacing the source image via FTP does not change the issue, it is not a caching issue as we have disabled all caching, we are using CloudFlare and have fully purged it’s cache also with no luck, we have tried varying Image Replacement plugins which seem to replace the image as the file size change reflects this, however the image still does not update on both the backend and the front end…
Ideally we need a function to be able to replace the image as this will preserve all links to the image, however we can’t get it to change at all at the moment.
Any help would be thoroughly appreciated, many thanks!
- The topic ‘Media Library – Images not updating’ is closed to new replies.