Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[FrameworkBundle] Add support to easily clear all cache pools #49705

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 25, 2023

Conversation

bobvandevijver
Copy link
Contributor

@bobvandevijver bobvandevijver commented Mar 16, 2023

Q A
Branch? 6.3
Bug fix? no
New feature? yes
Deprecations? no
Tickets Fix #22047
License MIT
Doc PR symfony/symfony-docs#18072

As suggested in #22047, I've now added a --all option to clear all cache pools by just providing that argument to cache:pool:clear. I believe this is more convenient than remembering the cache.global_clearer clearer alias and more descriptive for the consumer.

@k0d3r1s
Copy link
Contributor

k0d3r1s commented Mar 16, 2023

quick reminder that new features require PR in symfony/symfony-docs as well ;)

@bobvandevijver
Copy link
Contributor Author

bobvandevijver commented Mar 16, 2023

quick reminder that new features require PR in symfony/symfony-docs as well ;)

You're absolutely right, I should have mentioned I will make that addition when I at least know this is going to be accepted in some form. The issue I link might indicate that already, but as it was quite old I find it best to have confirmation first :)

Test errors look to be unrelated by the way.

@carsonbot carsonbot changed the title Add support to easily clear all cache pools [FrameworkBundle] Add support to easily clear all cache pools Mar 17, 2023
@fabpot fabpot force-pushed the cache-pool-clear-all branch from 4caa884 to 3a50d2d Compare March 25, 2023 09:01
@fabpot
Copy link
Member

fabpot commented Mar 25, 2023

Thank you @bobvandevijver.

@fabpot fabpot merged commit b01130d into symfony:6.3 Mar 25, 2023
@bobvandevijver bobvandevijver deleted the cache-pool-clear-all branch March 25, 2023 09:02
javiereguiluz added a commit to javiereguiluz/symfony-docs that referenced this pull request Mar 29, 2023
…for `cache:pool:clear` (bobvandevijver)

This PR was squashed before being merged into the 6.3 branch.

Discussion
----------

[Cache] Add documentation for new `--all` option for `cache:pool:clear`

<!--

If your pull request fixes a BUG, use the oldest maintained branch that contains
the bug (see https://symfony.com/releases for the list of maintained branches).

If your pull request documents a NEW FEATURE, use the same Symfony branch where
the feature was introduced (and `6.x` for features of unreleased versions).

-->
Documentation update for symfony/symfony#49705.

Commits
-------

bb7796d [Cache] Add documentation for new `--all` option for `cache:pool:clear`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FrameworkBundle] Clear cache pools
5 participants