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

Support for caching registerMetaTag #13832

Closed
olivierbon opened this issue Oct 16, 2023 · 2 comments
Closed

Support for caching registerMetaTag #13832

olivierbon opened this issue Oct 16, 2023 · 2 comments
Assignees

Comments

@olivierbon
Copy link
Member

olivierbon commented Oct 16, 2023

What happened?

Description

Caching for registerMetaTag (docs) isn't supported.

Steps to reproduce

Add the below to a template. The tag will print on first load but disappear on subsequent refresh.

{% cache %}
    {% do view.registerMetaTag({'name': 'title', 'content': 'metaContent'}) %}
{% endcache %}

Craft CMS version

^4.0.0

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

@i-just
Copy link
Contributor

i-just commented Oct 18, 2023

Thanks for helping me replicate it Oli! PR raised.

@brandonkelly
Copy link
Member

Craft 4.5.8 is out now with support for registerMetaTag() + {% cache %} (via #13845) 🎉

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

No branches or pull requests

3 participants