From 4b488b6c11282696c9e2800e009f07e0c3128f4e Mon Sep 17 00:00:00 2001 From: Konstantin Myakshin Date: Fri, 21 Oct 2016 17:55:27 +0300 Subject: [PATCH 1/2] Accept only array in TagAwareAdapter::invalidateTags() Reflect changes introduced in https://github.com/symfony/symfony/pull/20172 --- components/cache/cache_invalidation.rst | 3 --- 1 file changed, 3 deletions(-) diff --git a/components/cache/cache_invalidation.rst b/components/cache/cache_invalidation.rst index 6a6dc902eb3..86a7e413ef1 100644 --- a/components/cache/cache_invalidation.rst +++ b/components/cache/cache_invalidation.rst @@ -40,9 +40,6 @@ 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` $cache->invalidateTags(array('tag_1', 'tag_3')); From 13d477bb00571d781b8feb0425dee212b356f8e3 Mon Sep 17 00:00:00 2001 From: Konstantin Myakshin Date: Sat, 22 Oct 2016 01:40:28 +0300 Subject: [PATCH 2/2] Update cache_invalidation.rst --- components/cache/cache_invalidation.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/cache/cache_invalidation.rst b/components/cache/cache_invalidation.rst index 86a7e413ef1..34ae2b52f3e 100644 --- a/components/cache/cache_invalidation.rst +++ b/components/cache/cache_invalidation.rst @@ -40,7 +40,7 @@ If ``$cache`` implements :class:`Symfony\\Component\\Cache\\TagAwareAdapterInter you can invalidate the cached items by calling :method:`Symfony\\Component\\Cache\\TagAwareAdapterInterface::invalidateTags`:: - // 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