mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-07 07:57:01 +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
|
||||
|
||||
{% 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 %}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user