mage2tv / magento-cache-clean

A faster drop in replacement for bin/magento cache:clean with file watcher
BSD 3-Clause "New" or "Revised" License
527 stars 61 forks source link

Clean HYVA_ICONS cache tag when .svg icons are edited. #113

Open Vinai opened 9 months ago

Vinai commented 9 months ago

Our frontend developers have some trouble working with the \Hyva\Theme\ViewModel\SvgIcons::renderHtml method. They didn't know why the old SVG file was rendered in the HTML after editing the SVG file contents. They had disabled the browser cache, Magento block cache and the full-page cache, but still the old file contents were shown. Even running bin/magento cache:clean didn't help. It turns out that the results are stored in the Magento object cache using the HYVA_ICONS cache tag.
However, there is no way to clear the items with this cache tag, except for flushing the cache completely using bin/magento cache:flush.