Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2d38b2 commit a5e3c7eCopy full SHA for a5e3c7e
components/cache/cache_invalidation.rst
@@ -40,10 +40,7 @@ If ``$cache`` implements :class:`Symfony\\Component\\Cache\\TagAwareAdapterInter
40
you can invalidate the cached items by calling
41
:method:`Symfony\\Component\\Cache\\TagAwareAdapterInterface::invalidateTags`::
42
43
- // invalidate all items related to `tag_2`
44
- $cache->invalidateTags('tag_2');
45
-
46
- // or invalidate all items related to `tag_1` or `tag_3`
+ // invalidate all items related to `tag_1` or `tag_3`
47
$cache->invalidateTags(array('tag_1', 'tag_3'));
48
49
// if you know the cache key, you can of course delete directly
0 commit comments