[Templates] Enabling caching of templates under mod_perl?
Perrin Harkins
perrin@elem.com
Thu, 19 Jul 2007 17:06:06 -0400
On 7/19/07, Andrew Light <andrewlight7@googlemail.com> wrote:
> The one thing I have to figure out now, is how to manage the global varia=
lbe
> thing. To be honest, I have never heard about the Apache::Registry hack, =
I
> just pop in all of my regular CGI files in a mod_perl environment and don=
=B4t
> really have any special codes for mod_perl execution.
But you did configure your httpd.conf to run the files under
ModPerl::Registry or ModPerl::PerlRun, right? If not, you haven't
been using mod_perl.
> Are there any resources on this, that I should study?
There's a ton of documentation on http://perl.apache.org/.
> I tried the thing with the lexically scoped "our" varialbe snippet
> equivalent to your suggestion, but it seems like the template object is
> still created on each hit
That does sound like you aren't using mod_perl. Can you print out
$ENV{'MOD_PERL'} and check?
- Perrin