on our site, many image links seemed to be broken, when you clicked on the image it did not show or showed a broken link even in the product grids, but when you refreshed the browser after trying to click on it.. it shows fine, like it had to be woken up. The admin page always worked and shows the image in the product. To try to fix this we ran php -f bin/magento catalog:images:resize but while it is STILL running it has blown the inode count through the roof.. to well over 500,000 can counting. This puts us WAY past our limit and we can't afford to upgrade to a better hosting option.
What is the cause of this crazy inode count?
Can I reduce it in any way and still have the images show?
The resize completed... created over 500k files in the /pub/media/catalog/product/cache directory
We refreshed the caches and all images work fine on the site.
We blew out our inode limits ... we ran these steps:
- Run images:resize (took 6 hours)
- Click on Flush Catalog Images (deleted /pub/media/catalog/products/cache)
- Click on FlushMagento Cache
- Refresh browser for front end
I am back where I started, the images have broken links on front end.. back end is fine.
If I click on a broken link and go to the product page the picture still is not there.. if I go back to this page and refresh the product image will show again, as it has created a \cache file. So basically unless there is a file in the cache folder the image will not show.. I have tried 3 computers and 3 different browsers with same effect. The Siteground caches are all off...
I suspect that there could be an issue with the .htaccess file? is that possible?