Skip to content

Commit 319e5a2

Browse files
committed
[Cache] document cache:pool:invalidate-tags command
1 parent abf391b commit 319e5a2

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

cache.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -706,6 +706,26 @@ Clear all caches everywhere:
706706
707707
$ php bin/console cache:pool:clear cache.global_clearer
708708
709+
Clear cache by tag(s):
710+
711+
.. versionadded:: 6.1
712+
713+
The ``cache:pool:invalidate-tags`` command was added in Symfony 6.1.
714+
715+
.. code-block:: terminal
716+
717+
# invalidate tag1 from all taggable pools
718+
$ php bin/console cache:pool:invalidate-tags tag1
719+
720+
# invalidate tag1 & tag2 from all taggable pools
721+
$ php bin/console cache:pool:invalidate-tags tag1 tag2
722+
723+
# invalidate tag1 & tag2 from cache.app pool
724+
$ php bin/console cache:pool:invalidate-tags tag1 tag2 --pool=cache.app
725+
726+
# invalidate tag1 & tag2 from cache1 & cache2 pools
727+
$ php bin/console cache:pool:invalidate-tags tag1 tag2 -p cache1 -p cache2
728+
709729
Encrypting the Cache
710730
--------------------
711731

0 commit comments

Comments
 (0)