-
-
Notifications
You must be signed in to change notification settings - Fork 835
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Performance: Actually make use of the translator cache
We had added a `storage/locale` directory to our skeleton, but we had forgotten to hook it up with the translator. Enabling caching saves parsing that locale YAML files on every pageload which should be good for performance. The locale cache will be cleared whenever an extension that uses the `Locales` or `LanguagePack` extenders is enabled/disabled. If debug mode is ON, then the caching mechanism will automatically check if any of the loaded YAML files are dirty and update accordingly.
- Loading branch information
1 parent
a8f5ca8
commit 0d16fac
Showing
4 changed files
with
60 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0d16fac
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Beautiful, thank you! I can take this off my list now. :)