Code that executes only once when server starts up

Hello All,

I want to write a method initializes some global variables only once
when server starts. I can't write the code in application helper or
application controller because the global variables are re initialized
on every request to the server.

Can anybody point out what should i do

Thanks

Hello All,

I want to write a method initializes some global variables only once
when server starts. I can't write the code in application helper or
application controller because the global variables are re initialized
on every request to the server.

config/initializers ?

Fred

Frederick Cheung wrote: