Re: Is the object loaded by the USE directive cached between requests?
[email protected] (Randal L. Schwartz) Mon, 11 May 2015 16:03:48 -0700
| Newsgroups | gmane.comp.lang.perl.modules.template-toolkit |
|---|---|
| Message-ID | <[email protected]> |
>>>>> "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