Hi, I''ve a question about the Rails runtime. I''d like to know which part of Rails is executed (and put in memory) at each request? at each server launch? In other words, is Rails like PHP (the whole code is "executed" at each request)? Thanx Camille Roux -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 28 Jan 2009, at 16:36, Camille Roux wrote:> > Hi, > > I''ve a question about the Rails runtime. > I''d like to know which part of Rails is executed (and put in memory) > at > each request? at each server launch? > In other words, is Rails like PHP (the whole code is "executed" at > each > request)?All of your app code (and the framework) is loaded when the mongrel, passenger instance etc. is launched (passenger can do clever things with fork if you''re using REE). Fred> > > Thanx > Camille Roux > -- > 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Camille Roux wrote:> I''ve a question about the Rails runtime. > I''d like to know which part of Rails is executed (and put in memory) at > each request? at each server launch? > In other words, is Rails like PHP (the whole code is "executed" at each > request)?On on start-up in production mode a Rails app will load, execute, and cache the Rails framework plus certain parts of the app code. The rest of the app code is loaded and cached on-demand when an unknown class or module is referenced during a request. -- Rails Wheels - Find Plugins, List & Sell Plugins - http://railswheels.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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---