[Catalyst] pre-loading with PerlModule

Michael Reece mreece at vinq.com
Wed Nov 22 17:55:14 GMT 2006


If i leave out (from my httpd.conf)

	PerlModule MyApp

then everything is loaded at the first request.  i would prefer to  
preload so the first request is faster, but if i add the PerlModule  
directive to the apache (Apache/1.3.36 (Unix) mod_perl/1.29) config,  
then i get

	[warn] Setting config after setup has been run is not a good idea.
	[warn] Running setup twice is not a good idea.

plus a host of redefine warnings from the prepare/dispatch/finalize/ 
etc overrides defined in MyApp.pm, plus, if i have those methods use  
NEXT instead of SUPER, a few of these

	Deep recursion on subroutine "NEXT::AUTOLOAD" at /usr/local/lib/ 
perl5/site_perl/5.8.8/Catalyst/Plugin/StackTrace.pm line 75.

plus a broken app (all requests hang, with another Deep recursion on  
NEXT::AUTOLOAD error).

anyone else have trouble with the PerlModule directive or hints or  
suggestions?

thanks,
michael.




More information about the Catalyst mailing list