From 6ecb700a34eefce890861760b65f46b4a968871e Mon Sep 17 00:00:00 2001 From: Kevin Bond Date: Mon, 27 Dec 2021 10:48:39 -0500 Subject: [PATCH] [Cache] document `cache:pool:invalidate-tags` command --- cache.rst | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/cache.rst b/cache.rst index eb734db5859..6a744967856 100644 --- a/cache.rst +++ b/cache.rst @@ -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 --------------------