On Tue, 15 Oct 2002, Richard Tietjen wrote:

> 
> > (yes, I know I should be using mod_perl. Thats not an option ATM for
> > various reasons)
> 
> You might also want to take advantage of CGI::SpeedyCGI (aka
> Persistent Perl) from CPAN.  It arranges to run CGI scripts thru a
> persistent perl process outside of Apache.  Extant scripts need little
> modification to prevent reloading code unnecessarily.
> You'd want to say
>   $tt2 ||= $Template->new(... 
> for instance. 
> 

The bugzilla code is a mess - lots of stuff was ported directly from tcl, 
and later stuff was added on in teh same fashion.
As an example, we |require 'CGI.pl';|, where that contains subs as well as
actual statements (creating teh template object, parsing the CGI input 
ourself, etc) We have global vars in main everywhere, most of which aren't 
meant to survive for more than one request.

We're slowing getting rid of that code, though, and the goal is to make it 
runnable under mod_perl, eventually.

Bradley


_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://www.template-toolkit.org/mailman/listinfo/templates

Reply via email to