Hi everyone,
I'm running Magento 2.4.6 (installed via Composer, using Luma theme for testing), and I’ve encountered something strange related to product images.
When I update an existing product — either price, description, or stock — the product image thumbnails sometimes disappear from the frontend. The image files are still there in pub/media/catalog/product, but no new cache is created in pub/media/catalog/product/cache.
Here’s what I’ve already tried:
Running bin/magento catalog:images:resize
Clearing and flushing all cache (bin/magento cache:flush)
Reindexing (bin/magento indexer:reindex)
Permissions: all media folders have correct ownership and 775/664 permissions
Regenerating thumbnails via admin (which sometimes doesn't work)
Also tested this with developer and production modes — same issue. The only thing that works consistently is manually deleting the cache folder and saving the product again.
Is this a known bug in 2.4.6 or something wrong with how images are processed during product update?
Thanks for any ideas or tips.
Best regards,
Magento 2