0

we deleted products and its associated images from

/pub/media/import

/pub/media/catalog/product/

Also from

/pub/media/catalog/product/cache/

However, the images re-appear, not the original image, but the placeholder picture. So the link (e.g. www.xyz.com/pub/media/catalog/product/cache/99d67668879640f750d07dab82e3559f/3/8/38669-b_1-0.5x.jpg) is still active, and does not generate a 404 page.

Thats a problem, because we want to delete the cache of search engines, e.g. with the removal tool of bing. And, if there is still a working link, the cache of bing and the original picture does not get deleted.

How to get rid of these ghost placeholder images?

5
  • are you using a CDN? Feb 24 at 6:37
  • Hello, no , we just use our own server
    – Hubertus
    Feb 24 at 11:21
  • and you flushed the FPC cache i assume, right? Feb 24 at 11:57
  • 1
    yes, magento cache:flush and redis-clli flushall and i cleared all below /pub/media/catalog/product/cache/
    – Hubertus
    Feb 24 at 15:44
  • If you really want to avoid that for some special files, edit .htaccess: <filesMatch "(image_1.jpg|image_3.jpg|image_4.jpg)"> Order Allow,Deny Deny from All </filesMatch>
    – Hubertus
    Mar 23 at 20:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.