mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-12 18:36:53 +00:00
Invalid "tag" configuration key
This commit is contained in:
+3
-3
@@ -50,11 +50,11 @@ If your cache implementation supports tags, you can also tag your cache items:
|
|||||||
|
|
||||||
.. code-block:: twig
|
.. code-block:: twig
|
||||||
|
|
||||||
{% cache "cache key" tag('blog') %}
|
{% cache "cache key" tags('blog') %}
|
||||||
Some code
|
Some code
|
||||||
{% endcache %}
|
{% endcache %}
|
||||||
|
|
||||||
{% cache "cache key" tag(['cms', 'blog']) %}
|
{% cache "cache key" tags(['cms', 'blog']) %}
|
||||||
Some code
|
Some code
|
||||||
{% endcache %}
|
{% endcache %}
|
||||||
|
|
||||||
@@ -65,7 +65,7 @@ are local to the template fragment:
|
|||||||
|
|
||||||
{% set count = 1 %}
|
{% 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 #}
|
{# Won't affect the value of count outside of the cache tag #}
|
||||||
{% set count = 2 %}
|
{% set count = 2 %}
|
||||||
Some code
|
Some code
|
||||||
|
|||||||
Reference in New Issue
Block a user