Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6ecb700

Browse files
committed
[Cache] document cache:pool:invalidate-tags command
1 parent 15b275c commit 6ecb700

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

cache.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -706,6 +706,28 @@ Clear all caches everywhere:
706706
707707
$ php bin/console cache:pool:clear cache.global_clearer
708708
709+
Invalidate Tags Command
710+
~~~~~~~~~~~~~~~~~~~~~~~
711+
712+
.. versionadded:: 6.1
713+
714+
The ``cache:pool:invalidate-tags`` command was introduced in 6.1.
715+
716+
If using cache tags, you can invalidate tags via the
717+
``cache:pool:invalidate-tags`` command.
718+
719+
Invalidate ``tag1`` and ``tag2`` from all pools:
720+
721+
.. code-block:: terminal
722+
723+
$ php bin/console cache:pool:invalidate-tags tag1 tag2
724+
725+
Invalidate ``tag1`` and ``tag2`` from ``cache.app`` pool:
726+
727+
.. code-block:: terminal
728+
729+
$ php bin/console cache:pool:invalidate-tags tag1 tag2 --pool=cache.app
730+
709731
Encrypting the Cache
710732
--------------------
711733

0 commit comments

Comments
 (0)