You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bug #50253 [FrameworkBundle] Generate caches consistently on successive run of cache:clear command (Okhoshi)
This PR was submitted for the 6.2 branch but it was merged into the 5.4 branch instead.
Discussion
----------
[FrameworkBundle] Generate caches consistently on successive run of `cache:clear` command
| 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.
Commits
-------
dcbdca6 [FrameworkBundle] Generate caches consistently on successive run of `cache:clear` command
0 commit comments