From cc7ac50ebdd2e5590ae8dd618f5a774a26e3b580 Mon Sep 17 00:00:00 2001 From: MatTheCat Date: Fri, 21 Jul 2023 12:10:07 +0200 Subject: [PATCH] =?UTF-8?q?[Cache]=20Document=20`cache:pool:clear`?= =?UTF-8?q?=E2=80=99s=20new=20`--exclude`=20option?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cache.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cache.rst b/cache.rst index 24b3ebda973..3d1fc32a9cc 100644 --- a/cache.rst +++ b/cache.rst @@ -740,6 +740,16 @@ Clear all cache pools: The ``--all`` option was introduced in Symfony 6.3. +Clear all cache pools except some: + +.. code-block:: terminal + + $ php bin/console cache:pool:clear --all --exclude=my_cache_pool --exclude=another_cache_pool + +.. versionadded:: 6.4 + + The ``--exclude`` option was introduced in Symfony 6.4. + Clear all caches everywhere: .. code-block:: terminal