8000 [Cache] document `cache:pool:invalidate-tags` command by kbond · Pull Request #16328 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

[Cache] document cache:pool:invalidate-tags command #16328
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
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
0