Skip to content

[FrameworkBundle] Don't clear app pools on cache:clear #24383

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
Oct 1, 2017

Conversation

nicolas-grekas
Copy link
Member

Q A
Branch? 3.4
Bug fix? no
New feature? yes
BC breaks? no, but behavior change
Deprecations? no
Tests pass? yes
Fixed tickets #23685
License MIT
Doc PR -

The cache:clear command currently clears all cache pools by default.
This is not expected and is a bad default behavior (as explained in linked issue).
If we don't want to have that behavior forever, I see no other option than just doing the change, as done here, targeting 3.4.

@chalasr
Copy link
Member

chalasr commented Sep 30, 2017

Tests are failing

@nicolas-grekas
Copy link
Member Author

Tests fixed.

@fabpot
Copy link
Member

fabpot commented Oct 1, 2017

Thank you @nicolas-grekas.

@fabpot fabpot merged commit b0c04f8 into symfony:3.4 Oct 1, 2017
fabpot added a commit that referenced this pull request Oct 1, 2017
… (nicolas-grekas)

This PR was merged into the 3.4 branch.

Discussion
----------

[FrameworkBundle] Don't clear app pools on cache:clear

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no, but behavior change
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #23685
| License       | MIT
| Doc PR        | -

The cache:clear command currently clears all cache pools by default.
This is not expected and is a bad default behavior (as explained in linked issue).
If we don't want to have that behavior forever, I see no other option than just doing the change, as done here, targeting 3.4.

Commits
-------

b0c04f8 [FrameworkBundle] Don't clear app pools on cache:clear
@nicolas-grekas nicolas-grekas deleted the cache_clear_pools_23685 branch October 1, 2017 20:13
This was referenced Oct 18, 2017
@kbond
Copy link
Member

kbond commented Nov 9, 2017

To clarify, the default cache.app using the FilesystemAdapter is still cleared on cache:clear, correct?

@nicolas-grekas
Copy link
Member Author

not anymore on 3.4

@kbond
Copy link
Member

kbond commented Nov 9, 2017

hmm, I'm still seeing it cleared on BETA3. I figured this was expected because isn't the entire cache dir wiped on cache:clear?

@nicolas-grekas
Copy link
Member Author

Indeed, that's the reason. You'd need to store items elsewhere.

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.

7 participants