Re: [Templates] A problem with document caching?

[prev] [thread] [next] [Date index for 2004/09/21]

From: Perrin Harkins
Subject: Re: [Templates] A problem with document caching?
Date: 00:00 on 21 Sep 2004
On Mon, 2004-09-20 at 18:48, Tosh Cooey wrote:
> exit(&main);

Don't use exit.  It makes mod_perl kill the apache child process.

> So the code is fairly structured, and I can't see the "break" you mean, but I 
> can see how that would cause a problem.

I don't see it either in the code you are showing, but it could be in
there somewhere.  I would debug this by adding logging in various places
to see if the return value from getFilename() looks right, etc.  It may
also help to run in single process mode with the -X flag and see if the
problem persists.

> However I still think the fact that I have three Template objects open during 
> the running of this script could be a problem.

There is no problem that I'm aware of with having multiple Template
objects.

> Does loading CGI as a module cause problems?

No.  Adding a PerlModule statment to httpd.conf is the same as saying
"use CGI" in your script.

> I read that it's actually a "slow" 
> module to load, and so doing this helps speed it up.

Pre-loading modules at server startup saves memory.  See the mod_perl
documentation for the details.

- Perrin


_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates

[Templates] A problem with document caching?
Tosh Cooey 21:10 on 19 Sep 2004

Re: [Templates] A problem with document caching?
Buddy Burden 17:16 on 20 Sep 2004

Re: [Templates] A problem with document caching?
Perrin Harkins 19:38 on 20 Sep 2004

Re: [Templates] A problem with document caching?
Perrin Harkins 00:00 on 21 Sep 2004

Generated at 08:55 on 15 Mar 2005 by mariachi v0.52