Fearless Fool wrote in post #970802:
> What happens in a Rails app between http requests?
Generally nothing.
> Is it torn down
> entirely and re-started at the next request?
No, at least not in production mode.
> I know that's a rather
> open-ended question, but the answer has implications for code such as:
> =====
> class User < ActiveRecord::Base
> SOME_CONSTANT = difficult_to_compute_initialization_value()
> ...
> end
> =====
> Is there a writeup (and guiding principles) for the lifecycle of a Rails
> app?
You're
Or should I just not worry about this sort of thing until I
> actually deploy my app?
>
> TIA.
>
> - ff
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment