jebw
2009-Jul-30 15:26 UTC
Can I turn off config.action_view.cache_template_loading in Production
I''ve got an app which users can edit the ERB templates for emails, the changes aren''t taking effect till the app restarts though because config.action_view.cache_template_loading = true I''ve seen various comments that suggest it has to be true when in Production for thread safety - is Rails actually running in a threaded manner yet? Surely this is a none issue at the moment? Is anyone else running production apps with this set to false? Thanks jebw PS: yeh - I know liquid would be a better option, its on the list for the future
Maurício Linhares
2009-Jul-30 17:01 UTC
Re: Can I turn off config.action_view.cache_template_loading in Production
Do you understand the performance hit you''ll get once you do that? - Maurício Linhares http://codeshooter.wordpress.com/ | http://twitter.com/mauriciojr On Thu, Jul 30, 2009 at 12:26 PM, jebw<jebwilkins-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > I''ve got an app which users can edit the ERB templates for emails, the > changes aren''t taking effect till the app restarts though because > > config.action_view.cache_template_loading = true > > I''ve seen various comments that suggest it has to be true when in > Production for thread safety - is Rails actually running in a threaded > manner yet? Surely this is a none issue at the moment? > > Is anyone else running production apps with this set to false? > > Thanks > > jebw > > PS: yeh - I know liquid would be a better option, its on the list for > the future > > > >
Jeremy Wilkins
2009-Jul-30 19:34 UTC
Re: Can I turn off config.action_view.cache_template_loading in Production
No - not really. How significant would it be? I know this has only become a problem since the app got upgraded to 2.2 - prior to that we must not have been caching the templates anyway. jebw 2009/7/30 Maurício Linhares <mauricio.linhares-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> > Do you understand the performance hit you''ll get once you do that? > > - > Maurício Linhares > http://codeshooter.wordpress.com/ | http://twitter.com/mauriciojr > > > > On Thu, Jul 30, 2009 at 12:26 PM, jebw<jebwilkins-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >> I''ve got an app which users can edit the ERB templates for emails, the >> changes aren''t taking effect till the app restarts though because >> >> config.action_view.cache_template_loading = true >> >> I''ve seen various comments that suggest it has to be true when in >> Production for thread safety - is Rails actually running in a threaded >> manner yet? Surely this is a none issue at the moment? >> >> Is anyone else running production apps with this set to false? >> >> Thanks >> >> jebw >> >> PS: yeh - I know liquid would be a better option, its on the list for >> the future >> >> > >> > > > >