Skip to content

Commit

Permalink
minor #3483 Invalid "tag" configuration key (mikemix)
Browse files Browse the repository at this point in the history
This PR was merged into the 3.x branch.

Discussion
----------

Invalid "tag" configuration key

Commits
-------

849bfac Invalid "tag" configuration key
  • Loading branch information
fabpot committed Feb 5, 2021
2 parents b0863c5 + 849bfac commit b076496
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit b076496

Please sign in to comment.