8000
[DX] Detect translation file name changes in development #11530
Labels
DX
DX = Developer eXperience (anything that improves the experience of using Symfony)
The problem
When debug is enabled, you don't have to worry about the cache. If you change a file related to the cache, the cache is simply rebuild. However, there is one exception on this: Translation files.
This means you have to clear the cache each time you do one of these actions. That's an action you simply forget to do, since it's not needed for any other cache system used by Symfony.
The Solution
Simply check if there are new translation files in the application on each request when debug is enabled. (we may want to create a new configuration setting to check for it, which is enabled by default in the SE)
The text was updated successfully, but these errors were encountered: