Octavian Rasnita wrote:
Hi,
Can you please tell me when the server forks?
http://perl.apache.org/docs/2.0/user/handlers/server.html
What should I do to load some classes before the server forks?
http://perl.apache.org/docs/2.0/user/handlers/server.html#Startup_File
> What should I do if I want to load the classes after the server forks?
That's generally something you want to avoid, as it will increase your
memory usage. You can use the PerlChildInitHandler phase to run code
when the child process is forked from the main server process (details
in the first link above).
If you really want to do this though, just avoid putting that class in
the startup.pl file.