Re: [Templates] A problem with document caching?
[prev]
[thread]
[next]
[Date index for 2004/09/21]
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