Skip to content

Commit 8842729

Browse files
committed
Minors
1 parent d7f878c commit 8842729

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

cache.rst

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ Clearing the Cache
179179

180180
To clear the cache you can use the ``bin/console cache:pool:clear [pool]`` command.
181181
That will remove all the entries from your storage and you wil have to recalcuate
182-
all values. You can also group your pools into "cache clearers". There 3 cache clearer
183-
by default:
182+
all values. You can also group your pools into "cache clearers". There are 3 cache
183+
clearer by default:
184184

185185
* cache.global_clearer
186186
* cache.system_clearer
@@ -190,6 +190,20 @@ The global clearer clears all the cache in every pool. The system cache clearer
190190
is used in the ``bin/console cache:clear`` command. The app clearer is the default
191191
clearer.
192192

193+
Clear one pool:
194+
195+
.. code-block:: terminal
196+
197+
$ php bin/console cache:pool:clear my_cache_pool
198+
199+
Clear all custom pools:
200+
193201
.. code-block:: terminal
194202
195203
$ php bin/console cache:pool:clear cache.app_clearer
204+
205+
Clear all caches everywhere:
206+
207+
.. code-block:: terminal
208+
209+
$ php bin/console cache:pool:clear cache.global_clearer

0 commit comments

Comments
 (0)