I'm working on a high-throughput web site. The code has some parts that are always the same, such as loading configuration files. It is obviously wasteful to do this on every page load.
How can I add some code that will only be executed when Apache is (re)started, and which will set up some variables that can then be accessed by the normal CGI?