File tree 1 file changed +15
-1
lines changed
1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -127,9 +127,20 @@ when all items are successfully deleted)::
127
127
.. tip ::
128
128
129
129
If the cache component is used inside a Symfony application, you can remove
130
- * all items* from the * given pool(s) * using the following command (which resides within
130
+ items from cache pools using the following commands (which reside within
131
131
the :ref: `framework bundle <framework-bundle-configuration >`):
132
132
133
+ To remove *one specific item * from the *given pool *:
134
+
135
+ .. code-block :: terminal
136
+
137
+ $ php bin/console cache:pool:delete <cache-pool-name> <cache-key-name>
138
+
139
+ # deletes the "cache_key" item from the "cache.app" pool
140
+ $ php bin/console cache:pool:delete cache.app cache_key
141
+
142
+ You can also remove *all items * from the *given pool(s) *:
143
+
133
144
.. code-block :: terminal
134
145
135
146
$ php bin/console cache:pool:clear <cache-pool-name>
@@ -140,6 +151,9 @@ when all items are successfully deleted)::
140
151
# clears the "cache.validation" and "cache.app" pool
141
152
$ php bin/console cache:pool:clear cache.validation cache.app
142
153
154
+ .. versionadded :: 4.1
155
+ The ``cache:pool:delete `` command was introduced in Symfony 4.1.
156
+
143
157
.. _component-cache-cache-pool-prune :
144
158
145
159
Pruning Cache Items
You can’t perform that action at this time.
0 commit comments