At the moment we have many old product image cache url's on the frontend, with all 404 errors.
We can run the
php bin/magento catalog:image:resize command to regenerate them, but we have more than 270.000 images, so this will takes a lot of time.
Is there a way to clear the cache and regenerate the images directly on the frontend, when the product/categorypage is loaded for example? Or is there another way?