{"id":18999294,"date":"2026-08-21T08:59:49","date_gmt":"2026-08-21T08:59:49","guid":{"rendered":"https:\/\/wordpress.org\/support\/?post_type=topic&#038;p=18999294"},"modified":"2026-08-21T09:20:32","modified_gmt":"2026-08-21T09:20:32","slug":"avoiding-caching-problems","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/avoiding-caching-problems\/","title":{"rendered":"Avoiding caching problems"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>The following process has worked for me. Do you have any comments on it.<br \/><br \/>I had a file on my computer image1.svg and loaded it into WordPress media. I wanted to change the image so I:<br \/><br \/>. created a new file image2.svg<br \/><br \/>. opened WP media to view image1<br \/><br \/>. replaced image1 with the new image2<br \/><br \/>. used the option \u201cReplace the file, use new file name, and update all links\u201d<br \/><br \/>. reloaded caption, description etc.<br \/><br \/>. I immediately saw the impact of my change on each webpage that displayed the image.<br \/><br \/>. I did not have to purge any caches<br \/><br \/>I had caching problems when I:<br \/><br \/>. updated image1 by overwriting my file image1<br \/><br \/>. opened WordPress media to view image1<br \/><br \/>. replaced image1 with the new image1<br \/><br \/>. Used \u201cJust replace the file\u201d<br \/><br \/>. the cache kept on showing me the outdated version of image1.<\/code><\/pre>\n","protected":false},"template":"","class_list":["post-18999294","topic","type-topic","status-publish","hentry","topic-tag-caching","topic-tag-replacing"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18999294","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18999294\/revisions"}],"predecessor-version":[{"id":18999316,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18999294\/revisions\/18999316"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18999294"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}