Skip to content

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

Open
@Vinai

Description

@Vinai

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions