2

I am new to Magento 2 and also new to StackExchange.

I observed that there are so many images generated in the cache directory.
Why do I need this?

How can I stop creating these images?

What would happen if I delete all images in this directory?

1 Answer 1

2

This is not a bug, it's a feature of Magento.

When you upload an image for a product with specific image sizes, like 1200x1200 and you use it on the thumbnail with the size 60x60 and small image like 200x200 and large image like 600x600. It creates cache images according to your given size.

For 2nd question:
You can stop it by creating. And why anyone wants to stop it, its a feature: The benefit of this is, the user will not suffer in rendering large size images all over the website, it will show small image or thumbnail image on the web page, and that results with the high performance of the website.

For the 3rd question:
If you delete images from this directory, then Magento will create images again in it whenever someone opens your website it will create images automatically and saved it in the cache directory

Reference of my previous answer on almost the same question: What is the use of Magento 2.2.6 product image cache?

1
  • 5
    That's great. If you are using high scale framework like Magento, than you need to have a high performance and high volume server Feb 9, 2019 at 13:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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