diff --git a/components/cache/cache_pools.rst b/components/cache/cache_pools.rst index 0257d2bafcd..a08e6fd381f 100644 --- a/components/cache/cache_pools.rst +++ b/components/cache/cache_pools.rst @@ -127,9 +127,20 @@ when all items are successfully deleted):: .. tip:: If the cache component is used inside a Symfony application, you can remove - *all items* from the *given pool(s)* using the following command (which resides within + items from cache pools using the following commands (which reside within the :ref:`framework bundle `): + To remove *one specific item* from the *given pool*: + + .. code-block:: terminal + + $ php bin/console cache:pool:delete + + # deletes the "cache_key" item from the "cache.app" pool + $ php bin/console cache:pool:delete cache.app cache_key + + You can also remove *all items* from the *given pool(s)*: + .. code-block:: terminal $ php bin/console cache:pool:clear @@ -140,6 +151,9 @@ when all items are successfully deleted):: # clears the "cache.validation" and "cache.app" pool $ php bin/console cache:pool:clear cache.validation cache.app +.. versionadded:: 4.1 + The ``cache:pool:delete`` command was introduced in Symfony 4.1. + .. _component-cache-cache-pool-prune: Pruning Cache Items pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy