Skip to content
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

[FrameworkBundle] Generate caches consistently on successive run of cache:clear command #50253

Merged
merged 1 commit into from May 14, 2023

Conversation

Okhoshi
Copy link
Contributor

@Okhoshi Okhoshi commented May 6, 2023

Q A
Branch? 5.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #46324
License MIT
Doc PR N/A

When the Kernel is configured to use different directories for build_dir and cache_dir, successive runs of the cache:clear produce different outputs. See #46324 for the reproduction steps and the differences observed.

This is due to the fact that if the cached kernel needs to be regenerated when invoking cache:clear command, the cache warmers are run in the same directory where the kernel was regenerated ($warmupDir, which will become the build_dir). When the cache is fresh, only cache warmers are run, and in cache_dir this time.

@nicolas-grekas
Copy link
Member

Thank you @Okhoshi.

@nicolas-grekas nicolas-grekas merged commit 6166fc4 into symfony:5.4 May 14, 2023
9 of 11 checks passed
@vudaltsov
Copy link
Contributor

Thank you!

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.

None yet

4 participants