Is it possible to disable Magento 2 image cache (it's consuming 41G), I want to use S3 for images since I expect our images to go over 2TB in few months, I am afraid generating cache on S3 may take too much time and result in inconsistencies. So is there a way to disable magento image cache?

I do not see image cache under Cache Management.

enter image description here



Hello you can enable/disable cache by going in Magento backend, go to System > Tools > Cache Management Check image cache box select disable from action then save it this will disable image cache. Hope this might help.

  • 1
    Thanks for reply Abhi, but I do not see Image Cache check box under Cache Management, see the screenshot I have attached. – Sajid Oct 23 '18 at 18:48

Just like in Magento1 there's no setting in Magento2 for disabling the image cache.

If you really don't want Magento to cache your images, you'll need to go through all your template files where you're calling the image and replace the code to load the image from the attribute model instead of the media init.

  • can you please update the sample code for loading product image from attribute model in product detail page. @Hamim – jafar pinjar Jun 7 '19 at 11:05

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.