From: Kevin G. <ke...@go...> - 2004-01-13 06:07:02
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 | are handled with Apache::Registry for performance improvement. I do not | believe there is any way to have the init function only called once | within this framework. Is this a possibility for you? From 'perldoc mod_perl' ~ PerlRequire perl-scripts/script_to_load_at_startup.pl ~ A PerlRequire file is commonly used for intialization dur ~ ing server startup time. A PerlRequire file name can be ~ absolute or relative to ServerRoot or a path in @INC. A ~ PerlRequire'd file must return a true value, i.e., the end ~ of this file should have a: ~ 1; #return true value ~ See eg/startup.pl for an example to start with. | So far, I have not noticed any problems with | repeatedly calling init on each cgi access. For myself, I won't say that doing it that way will definitely cause problems, but I won't endorse it, either. I'm going to play it conservative and just say, "Your mileage may vary." Calling init() with the same config information isn't the best, performance-wise, and it's kind of outside the bounds of our design/conception. Unless Mike has something better to say about it, that is... - -- Happy Trails. . . Kevin M. Goess (and Anne and Frank) 904 Carmel Ave. Albany, CA 94706 (510)525-5217 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) Comment: Using GnuPG with Netscape - http://enigmail.mozdev.org iD8DBQFAA4qL4g4/Tl71vUkRAnXBAKClBW3VI1c1yWA7O2hF+CI5p/leGQCfXMev N4Iwt83BXisoqwralJyaPCY= =6tio -----END PGP SIGNATURE----- |