Closed
Description
We (with @damienalexandre and @lyrixx) catch an issue with the DownloadCommand.
Steps to reproduce
- We start with an empty cache.
- We do not have any of our translation files versioned.
- We execute the download command to fetch from Loco (or anywhere else).
- Symfony builds its container with a hardcoded translation files list which do not contains the fresh downloaded files.
- We execute again and again the download command with
--cache
option, and Symfony's container will rebuild the translation cache files with the old hardcoded list of files. So it never builds cache with new downloaded files.
Quick fix
- Run
cache:clear
just after the first download command execution.
Expected behaviour
After the first run of download command, Symfony's container must be rebuilt with all translation files, to be able to warm-up cache for these files.
We know that it will be hard to fix this issue because it concerns Symfony's way to build container.