diff options
author | Mark Longair <mhl@pobox.com> | 2013-09-15 17:09:05 +0100 |
---|---|---|
committer | Mark Longair <mhl@pobox.com> | 2013-09-16 11:11:03 +0100 |
commit | 88f5008401ac0456306bf957aa0df325684e51cf (patch) | |
tree | 2f1200806a48b0bbbc4bc935bb0ff685c5b7e4ba /public | |
parent | fccffdf4f70d5f9fa12ad6e75187be1728026823 (diff) |
Only set up FastGettext on initialization, even in development modeimprove-development-performance
Even on a very fast computer, there is a significant delay (a couple
of seconds) in processing every request in development mode. This
is because the configuration of FastGettext's paths for finding
translations is done in a block passed to
Rails.configuration.to_prepare, which causes the block to be run
before every request by the Rails Reloader in developmetn mode.
It seems to be work fine just running the FastGettext calls on
initialization in development mode, however - customizations in
the theme's locale-theme directory still have effect in
development mode even after the reloader has reloaded classes
before handling subsequent requests. So, I think this change
should be safe. This commit introduces that change, having the
effect that development mode is much more responsive.
Diffstat (limited to 'public')
0 files changed, 0 insertions, 0 deletions