Re: [Templates] A problem with document caching?

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

From: Buddy Burden
Subject: Re: [Templates] A problem with document caching?
Date: 17:16 on 20 Sep 2004
Tosh,

> This all works fine under a normal Apache CGI environment, but once the 
> script is running under ModPerl::Registry, or even ModPerl::PerlRun I am 
> not getting the correct files served.

IME, this is almost always caused by some code at the top of your .pm's. 
  Remember that such code is effectively in a BEGIN block, so it gets 
called only once(*) (at server startup) under mod_perl, whereas it would 
get called every time your CGI runs (since the CGI is recompiled every 
time).  I can't guess exactly where the problem is from the info you've 
provided, but I'd be it's something to do with that.

Good luck.


	-- Buddy


(*) Technically, once per server process, I believe, although that 
rarely makes much practical difference.

_______________________________________________
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