[Templates] sharing memory under mod_perl

darren chamberlain dlc@users.sourceforge.net
Tue, 7 Oct 2003 08:56:41 -0400


--OEa2bCMk+rg6xBXy
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

* Brad Bowman <template at bowman.bs> [2003-10-07 08:24]:
> The mod_perl guide has advice for loading CGI & DBI at
> apache startup time to improve memory sharing.
>=20
> Does anyone have a similar snippet for TT2?

Since version 2.55 (last November), Template.pm will preload all the TT2
modules if it detects $ENV{MOD_PERL}.  This means that a simple

  PerlModule Template

In your httpd.conf will compile all the TT2 modules in the parent
process.  You can also explicitly call Template::Config->preload() if
you want.

(darren)

--=20
There are two ways of constructing a software design. One way is to
make it so simple that there are obviously no deficiencies. And the
other way is to make it so complicated that there are no obvious
deficiencies.
    -- C.A.R. Hoare

--OEa2bCMk+rg6xBXy
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: This message is digitally signed and can be verified for authenticity.

iD8DBQE/grgJzsinjrVhZaoRAuJsAJ4/M9QioO2ZQJytMuXDGQKgSA7IyQCfT1iJ
a0V2/V+p+Kzqa6RrmXpBZJc=
=rNqQ
-----END PGP SIGNATURE-----

--OEa2bCMk+rg6xBXy--