|Welcome to the Monastery|
Re^3: In CGI::Application cgiapp_prerun vs. cgiapp_init?by Anonymous Monk
|on Jul 18, 2012 at 01:21 UTC||Need Help??|
Summary: they're both called on every request. Not sure if it's a change since this thread was posted but the information here doesn't seem to be correct.
Its neither, its a matter scoping :)
If this is your mod_perl application
cgiapp_init is going to get called with every request, obviously, because you're creating a new object each time -- this is typical Apache::Registry/ModPerl::Registry, running unmodified .cgi's under mod_perl
But if your mod_perl application is
Then init/setup is only done once, and only run is done upon every request.
So nothing changed, this are working as designed, as they always have.
See also the source of CGI::Application::FastCGI