Skip to content

Commit 152aecc

Browse files
committed
minor symfony#7073 Accept only array in TagAwareAdapter::invalidateTags() (Koc)
This PR was squashed before being merged into the master branch (closes symfony#7073). Discussion ---------- Accept only array in TagAwareAdapter::invalidateTags() Reflect changes introduced in symfony/symfony#20172 Commits ------- a5e3c7e Accept only array in TagAwareAdapter::invalidateTags()
2 parents b2d38b2 + a5e3c7e commit 152aecc

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

components/cache/cache_invalidation.rst

+1-4
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,7 @@ If ``$cache`` implements :class:`Symfony\\Component\\Cache\\TagAwareAdapterInter
4040
you can invalidate the cached items by calling
4141
:method:`Symfony\\Component\\Cache\\TagAwareAdapterInterface::invalidateTags`::
4242

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`
43+
// invalidate all items related to `tag_1` or `tag_3`
4744
$cache->invalidateTags(array('tag_1', 'tag_3'));
4845

4946
// if you know the cache key, you can of course delete directly

0 commit comments

Comments
 (0)