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

Invalid "tag" configuration key #3483

Merged
merged 1 commit into from
Feb 5, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions doc/tags/cache.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ If your cache implementation supports tags, you can also tag your cache items:

.. code-block:: twig

{% cache "cache key" tag('blog') %}
{% cache "cache key" tags('blog') %}
Some code
{% endcache %}

{% cache "cache key" tag(['cms', 'blog']) %}
{% cache "cache key" tags(['cms', 'blog']) %}
Some code
{% endcache %}

Expand All @@ -65,7 +65,7 @@ are local to the template fragment:

{% set count = 1 %}

{% cache "cache key" tag('blog') %}
{% cache "cache key" tags('blog') %}
{# Won't affect the value of count outside of the cache tag #}
{% set count = 2 %}
Some code
Expand Down