Skip to content

Commit 5acab24

Browse files
committed
minor #16493 [Cache] document cache:pool:invalidate-tags command (kbond)
This PR was merged into the 6.1 branch. Discussion ---------- [Cache] document `cache:pool:invalidate-tags` command Reference: symfony/symfony#44692 Commits ------- 319e5a2 [Cache] document `cache:pool:invalidate-tags` command
2 parents 68992a8 + 319e5a2 commit 5acab24

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)