From 319e5a2aed59804d764daabb86e740cb5e708543 Mon Sep 17 00:00:00 2001 From: Kevin Bond Date: Thu, 10 Feb 2022 09:46:30 -0500 Subject: [PATCH] [Cache] document `cache:pool:invalidate-tags` command --- cache.rst | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/cache.rst b/cache.rst index eb734db5859..cecb4dbe654 100644 --- a/cache.rst +++ b/cache.rst @@ -706,6 +706,26 @@ Clear all caches everywhere: $ php bin/console cache:pool:clear cache.global_clearer +Clear cache by tag(s): + +.. versionadded:: 6.1 + + The ``cache:pool:invalidate-tags`` command was added in Symfony 6.1. + +.. code-block:: terminal + + # invalidate tag1 from all taggable pools + $ php bin/console cache:pool:invalidate-tags tag1 + + # invalidate tag1 & tag2 from all taggable pools + $ php bin/console cache:pool:invalidate-tags tag1 tag2 + + # invalidate tag1 & tag2 from cache.app pool + $ php bin/console cache:pool:invalidate-tags tag1 tag2 --pool=cache.app + + # invalidate tag1 & tag2 from cache1 & cache2 pools + $ php bin/console cache:pool:invalidate-tags tag1 tag2 -p cache1 -p cache2 + Encrypting the Cache --------------------