We have just upgraded from Magento CE 2.2.4 to Magento CE 2.4.1. After upgrading our product image pathes have changed. For example:
<image id="category_page_grid" type="small_image">
<width>200</width>
<height>200</height>
</image>
Before upgrading these images had the following pathes:
pub/media/catalog/product/cache/e960f294cf534815b24fe57fbd9f1a95/
After upgrading the pathes / cache key have changed to:
pub/media/catalog/product/cache/a0ecae6a984b270d9c4e075a6d93d0bc/
We need to keep the 'old' cache keys / images pathes, but I could not find a way to achieve this.
Is there a way to change the image cache URLs in Magento 2? Unfortunately, redirects are not an option in this case. We need to physically change the URLs to their former version / using the former cache keys.
Any help is very much appreciated - thanks a lot!
Best wishes,
Alex
question from:
https://stackoverflow.com/questions/65643662/magento-2-change-image-cache-key-image-cache-path 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…