10000 Added docs for the cache:pool:clear command · symfony/symfony-docs@2c220c4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2c220c4

Browse files
committed
Added docs for the cache:pool:clear command
1 parent 7a8e74a commit 2c220c4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

components/cache/cache_pools.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,4 +278,13 @@ when all items are successfully deleted)::
278278
// ...
279279
$cacheIsEmpty = $cache->clear();
280280

281+
.. tip::
282+
283+
If the Cache component is used inside a Symfony application, you can remove
284+
all the items of a given cache pool with the following command:
285+
286+
.. code-block:: terminal
287+
288+
$ ./bin/console cache:pool:clear <cache-pool-name>
289+
281290
.. _`Doctrine Cache`: https://github.com/doctrine/cache

0 commit comments

Comments
 (0)
0