Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Vinai opened this issue Nov 27, 2023 · 0 comments
Open

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

Vinai opened this issue Nov 27, 2023 · 0 comments

Comments

@Vinai
Copy link
Contributor

Vinai commented Nov 27, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant