Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 139c3d2

Browse filesBrowse files
committed
minor #9628 [FrameworkBundle] cache:pool:delete command (snoek09)
This PR was merged into the 4.1 branch. Discussion ---------- [FrameworkBundle] cache:pool:delete command This fixes #9454. Commits ------- 8136cbf add cache:pool:delete command
2 parents 68803bd + 8136cbf commit 139c3d2
Copy full SHA for 139c3d2

File tree

1 file changed

+15
-1
lines changed
Filter options

1 file changed

+15
-1
lines changed

‎components/cache/cache_pools.rst

Copy file name to clipboardExpand all lines: components/cache/cache_pools.rst
+15-1Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,20 @@ when all items are successfully deleted)::
127127
.. tip::
128128

129129
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
131131
the :ref:`framework bundle <framework-bundle-configuration>`):
132132

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+
133144
.. code-block:: terminal
134145
135146
$ php bin/console cache:pool:clear <cache-pool-name>
@@ -140,6 +151,9 @@ when all items are successfully deleted)::
140151
# clears the "cache.validation" and "cache.app" pool
141152
$ php bin/console cache:pool:clear cache.validation cache.app
142153
154+
.. versionadded:: 4.1
155+
The ``cache:pool:delete`` command was introduced in Symfony 4.1.
156+
143157
.. _component-cache-cache-pool-prune:
144158

145159
Pruning Cache Items

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.