On Mon, 2004-03-08 at 02:36, Curt Siffert wrote:
> I'm trying to think out of the box on the below issue - are there 
> webserver configuration gotchas that could make it behave as it does?  
> Or do redirects not work with caching?

HTTP redirects have nothing to do with TT caching.  TT caching doesn't
interact with HTTP at all, and works the same when TT is used for mail,
generating PostScript, etc.

Your description of the problem is pretty brief, but I'm guessing there
is something wrong with the way you are mapping URLs to templates.  If
you could show us some of that code, we may be able to help.

It could also be that you are doing some other kind of caching, like
sending Expires headers or using a reverse proxy, but those are
unrelated to TT.

- Perrin

> 
> Thanks,
> Curt
> 
> On Mar 5, 2004, at 2:35 PM, Curt Siffert wrote:
> 
> >
> > I'm running into some difficulty with compiled templates - I turn on
> > COMPILE_EXT
> > and
> > COMPILE_DIR
> > to a directory the webserver can write to.
> >
> > We're in a CGI environment using version 2.12 .  When I start from 
> > that point, our dynamic site starts loading the wrong pages.
> >
> > I believe it has to do with redirects - do redirects break caching?
> >
> > For instance, our home page has an href to an internal page.  This 
> > internal page checks a cookie, and if it isn't set, redirects to 
> > another page.  (I use the $query->redirect from CGI.pm).
> >
> > With caching turned on, attempting to click that link just reloads the 
> > home page.  When I comment out the redirect statement, it seems to 
> > load fine.  Uncomment and reload takes me back to the homepage.
> >
> > Also, my COMPILE_DIR has contents I'm not sure about, but then again 
> > I'm new to tt2's caching.  It mirrors the filesystem hierarchy just 
> > fine, but the two templates I loaded and visted are in the top level 
> > rather than within the hierarchy.  Meanwhile, subtemplates that the 
> > templates load are in the filesystem hierarchy as I expected.
> >
> > Thanks,
> > Curt
> >
> >
> > _______________________________________________
> > templates mailing list
> > [EMAIL PROTECTED]
> > http://lists.template-toolkit.org/mailman/listinfo/templates
> >
> 
> 
> _______________________________________________
> templates mailing list
> [EMAIL PROTECTED]
> http://lists.template-toolkit.org/mailman/listinfo/templates


_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to