thaiphan / magento2-s3

Use Amazon S3 as the file storage solution for your Magento 2 application
MIT License
142 stars 95 forks source link

After delete pub/media file it will regenerate in server side also #42

Closed dev-dyna closed 6 years ago

dev-dyna commented 6 years ago

Using this extension if we directly use s3 bucket images file then why it will regenerate all images in local server means ( in current site's server ) ? On refresh the page all product images file re-created in my server , images file is generate on s3 bucket is okay but why its generate in server side also ?

thaiphan commented 6 years ago

Hey @dev-dyna,

This is actually a built-in behaviour from core Magento. Magento will download the image onto the file system as some kind of caching mechanism!

It's safe to delete the folder (although I always recommend taking a backup beforehand). You might also want to update your media URL to be CloudFront or something if you want to reduce the changes of Magento caching images onto your file system.

Regards,

Thai