Closed
Description
Symfony version(s) affected: 4.3.7/4.3.8
Description
Since 4.3.7, warming translation caches then deploying to a different path results in the warmed cached being ignored and regenerated. I believe this is caused by the change in #34129, which effectively adds the full project path to the cache key for the translator.
How to reproduce
- Warm the translation cache.
- Rename the project directory.
- Warm the translation cache again. At this point, the translation cache file names will change.
For example, var/cache/prod/translations/catalogue.en_GB.FOO.php
will be replaced with var/cache/prod/translations/catalogue.en_GB.BAR.php
.
Possible Solution
Could the project directory be removed from the paths in "scanned_directories"?