What happens in a Rails app between http requests? Is it torn down
entirely and re-started at the next request? 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? 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