Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.3k
[FrameworkBundle] cache:pool:delete command#9628
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -127,9 +127,20 @@ when all items are successfully deleted):: | ||
| .. tip:: | ||
| If the cache component is used inside a Symfony application, you can remove | ||
| items fromcache poolsusing the followingcommands (whichreside within | ||
| the :ref:`framework bundle <framework-bundle-configuration>`): | ||
| To remove *one specific item* from the *given pool*: | ||
| .. code-block:: terminal | ||
| $ php bin/console cache:pool:delete <cache-pool-name> <cache-key-name> | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. one thing that is not clear for me here is how you get the list of cache pool names :/ Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. You configured them yourself in the Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. I think so. Isn't there | ||
| # deletes the "cache_key" item from the "cache.app" pool | ||
| $ php bin/console cache:pool:delete cache.app cache_key | ||
| You can also remove *all items* from the *given pool(s)*: | ||
| .. code-block:: terminal | ||
| $ php bin/console cache:pool:clear <cache-pool-name> | ||
| @@ -140,6 +151,9 @@ when all items are successfully deleted):: | ||
| # clears the "cache.validation" and "cache.app" pool | ||
| $ php bin/console cache:pool:clear cache.validation cache.app | ||
| .. versionadded:: 4.1 | ||
| The ``cache:pool:delete`` command was introduced in Symfony 4.1. | ||
| .. _component-cache-cache-pool-prune: | ||
| Pruning Cache Items | ||