Environment details:
Apache 2.2.22
Perl 5.14.2
mod_perl2 2.000007

A lot of modules are loaded, including the Util.pm in question, by the
Apache config via a PerlRequire directive.

Template->new is called once on each request. Sounds like that's the key.


Thanks!


On Mon, May 11, 2015 at 7:03 PM, Randal L. Schwartz <[email protected]>
wrote:

> >>>>> "Chris" == Chris Herdt <[email protected]> writes:
>
> Chris> Does the USE directive load a new instance of the object per
> Chris> request? Or is it cached?
>
> First, let's back up a step.  Is this in mod_perl?  Are you loading all
> the code in the parent process, or once per child process?
>
> And most importantly, are you initiating your Template->new object only
> *once* per child lifecycle?  If you toss that and recreate it on each
> hit, you lose *all* prior knowledge.
>
> --
> Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777
> 0095
> <[email protected]> <URL:http://www.stonehenge.com/merlyn/>
> Perl/Unix consulting, Technical writing, Comedy, etc. etc.
> Still trying to think of something clever for the fourth line of this .sig
>



-- 
Chris Herdt
Web Applications Developer
http://osric.com/chris/
_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to