Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a5e3c7e

Browse filesBrowse files
Kocxabbuh
authored andcommitted
Accept only array in TagAwareAdapter::invalidateTags()
1 parent b2d38b2 commit a5e3c7e
Copy full SHA for a5e3c7e

File tree

1 file changed

+1
-4
lines changed
Filter options

1 file changed

+1
-4
lines changed

‎components/cache/cache_invalidation.rst

Copy file name to clipboardExpand all lines: components/cache/cache_invalidation.rst
+1-4Lines changed: 1 addition & 4 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.