Can I turn off config.action_view.cache_template_loading in Production

54 views
Skip to first unread message

jebw

unread,
Jul 30, 2009, 11:26:16 AM7/30/09
to Ruby on Rails: Talk
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

unread,
Jul 30, 2009, 1:01:17 PM7/30/09
to rubyonra...@googlegroups.com
Do you understand the performance hit you'll get once you do that?

-
Maurício Linhares
http://codeshooter.wordpress.com/ | http://twitter.com/mauriciojr

Jeremy Wilkins

unread,
Jul 30, 2009, 3:34:16 PM7/30/09
to rubyonra...@googlegroups.com
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...@gmail.com>:
Reply all
Reply to author
Forward
0 new messages