[Templates] Enabling caching of templates under mod_perl?

Stuart Johnston saj@thecommune.net
Thu, 19 Jul 2007 16:10:02 -0500


Andrew Light wrote:
> Randal,
>=20
> thanks a lot for your fast and really helpful answer.
> CACHE_SIZE is not defined within my config, so it should be set to unde=
f.
> I have set the COMPILE DIR and have the compiled templates already=20
> written to disk on the web server.
>=20
> The one thing I have to figure out now, is how to manage the global=20
> varialbe thing. To be honest, I have never heard about the=20
> Apache::Registry hack, I just pop in all of my regular CGI files in a=20
> mod_perl environment and don=C2=B4t really have any special codes for=20
> mod_perl execution.=20

How is your mod_perl environment configured?  Do you have something like:

PerlHandler Apache::PerlRun

Or:

PerlHandler Apache::Registry

> Are there any resources on this, that I should study?

http://perl.apache.org/docs/1.0/guide/porting.htm