Closed
Description
Symfony version(s) affected
5.4.24,6.2.11
Description
#50253 forces the cache:clear
to always run in the cache_dir
, even when both build_dir
and cache_dir
are the same directory.
This leads to some files being deleted if the container cache is not fresh (which is always the case if the cache_dir
directory was already existing and warmed up).
Since the optional CacheWarmers are run in the cache_dir
, their artefacts are lost once the cache_dir
is replaced with the warmup directory.
How to reproduce
s new --dir symfony_cache_dir_problem
cd ./symfony_cache_dir_problem
composer install -q
# See that router cache is warmed up
composer install -q
# See that router cache is missing
Possible Solution
No response
Additional Context
No response