diff --git a/components/cache/cache_invalidation.rst b/components/cache/cache_invalidation.rst index 6a6dc902eb3..34ae2b52f3e 100644 --- a/components/cache/cache_invalidation.rst +++ b/components/cache/cache_invalidation.rst @@ -40,10 +40,7 @@ If ``$cache`` implements :class:`Symfony\\Component\\Cache\\TagAwareAdapterInter you can invalidate the cached items by calling :method:`Symfony\\Component\\Cache\\TagAwareAdapterInterface::invalidateTags`:: - // invalidate all items related to `tag_2` - $cache->invalidateTags('tag_2'); - - // or invalidate all items related to `tag_1` or `tag_3` + // invalidate all items related to `tag_1` or `tag_3` $cache->invalidateTags(array('tag_1', 'tag_3')); // if you know the cache key, you can of course delete directly