Shared on Mage Dispatch · 02 Sep 2026
Script to fix wrong cache encryption key after upgrading to 2.4.8
Up to 2.4.7 Magento\Catalog\Model\View\Asset\Image::getMiscPath() hashed the image parameters with the installation's encryption key (hash_hmac); from 2.4.8 on it is a plain md5 over the same string, with the note "New paths are generated without dependency on an encryption key". This patch helps you mitigate that issue.