Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions cache.rst
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,28 @@ Clear all caches everywhere:

$ php bin/console cache:pool:clear cache.global_clearer

Invalidate Tags Command
~~~~~~~~~~~~~~~~~~~~~~~

.. versionadded:: 6.1

The ``cache:pool:invalidate-tags`` command was introduced in 6.1.

If using cache tags, you can invalidate tags via the
``cache:pool:invalidate-tags`` command.

Invalidate ``tag1`` and ``tag2`` from all pools:

.. code-block:: terminal

$ php bin/console cache:pool:invalidate-tags tag1 tag2

Invalidate ``tag1`` and ``tag2`` from ``cache.app`` pool:

.. code-block:: terminal

$ php bin/console cache:pool:invalidate-tags tag1 tag2 --pool=cache.app

Encrypting the Cache
--------------------

Expand Down