in reply to Re: Apache/mod_perl configuration
in thread Apache/mod_perl configuration

Is there some way to prevent this happening? I assume this occurs accross other containers (such as VirtualHost)?

Replies are listed 'Best First'.
Re^3: Apache/mod_perl configuration
by Jaap (Curate) on Dec 01, 2004 at 13:20 UTC
    It does happen across other containers too yes. I assume you cannot prevent this because it's what mod_perl does: load the thing into memory to be ready when someone makes a request.
      I see... makes sense.... thanks.
Re^3: Apache/mod_perl configuration
by ikegami (Patriarch) on Dec 01, 2004 at 14:59 UTC

    (I'm taking Jaap's answer at face value. I don't remember much about mod_perl.)

    What are you trying to accomplish? There might be other ways of accomplishing what you want to accomplish. One thing you could do is to have a barebones handler that loads up the full module and calls it:

    sub handler { require Full::Module; goto(&Full::Module::handler); }

    (You might have to fool with the args in @_ a little. I don't remember what args a handler receives.)

    Of course, once the module is loaded, it will stay loaded.