On Thu, 2006-08-10 at 12:01 -0500, Stuart Johnston wrote:
> > I thought about using ajax on those pages so they can be cached and
> > update the user's name and menu on page load.  But, I'm not ready to
> > make javascript required yet.
> 
> I assume the logged-in users are designated with a cookie?  Perhaps
> you could use mod_rewrite to 
> check for the cookie and send the request to either the cached page or
> the dynamic page.

I've done both of these.  The JavaScript approach is the most scalable
in terms of keeping load off your server.  The mod_rewrite trick works
well if you can't use JavaScript.  It's particularly good when a whole
group gets one version of the page.  If there is too much difference in
the page for either of these to be practical, caching the underlying
data and running TT again is still pretty fast.

- Perrin


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

Reply via email to