Skip to content

Commit 556c721

Browse files
committed
minor symfony#7206 Added docs for the cache:pool:clear command (javiereguiluz, HeahDude)
This PR was merged into the 3.2 branch. Discussion ---------- Added docs for the cache:pool:clear command This fixes symfony#7173. Commits ------- 3c31e09 applying comment from @wouterj 2c220c4 Added docs for the cache:pool:clear command
2 parents e48a210 + 3c31e09 commit 556c721

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

components/cache/cache_pools.rst

+15
Original file line numberDiff line numberDiff line change
@@ -343,4 +343,19 @@ when all items are successfully deleted)::
343343
// ...
344344
$cacheIsEmpty = $cache->clear();
345345

346+
.. tip::
347+
348+
If the Cache component is used inside a Symfony application, you can remove
349+
all the items of a given cache pool with the following command:
350+
351+
.. code-block:: terminal
352+
353+
$ php bin/console cache:pool:clear <cache-pool-name>
354+
355+
# clears the "cache.app" pool
356+
$ php bin/console cache:pool:clear cache.app
357+
358+
# clears the "cache.validation" and "cache.app" pool
359+
$ php bin/console cache:pool:clear cache.validation cache.app
360+
346361
.. _`Doctrine Cache`: https://github.com/doctrine/cache

0 commit comments

Comments
 (0)