[Templates] Parsing all Templates in the include directory at startup time?

[prev] [thread] [next] [Date index for 2004/10/25]

From: knoebi
Subject: [Templates] Parsing all Templates in the include directory at startup time?
Date: 05:40 on 25 Oct 2004
Hi list,

I'am a new but very happy user from TT2. It really helps me to keep
the view stuff out of the controller. I'am using TT2 together with
CGI::Builder in a mod-perl enviroment (there is an integration called
CGI::Builder::TT2 for TT) which is something like an extended
CGI::Application.
It works fine so far except that the templates get parsed on the first
requests and not at the server start, which has 2 significant
drawbacks: 1. the first request takes a lot more time and 2. the
template cache doesn't get shared between the Apache childrens.
I believe this may be a very common problem, but I didn't see a
configuration option to change this behaviour and so i'am asking whats
the simplest and most effective way to accomplish my goal? I could
imagine to write my own function to get the load the Templates (maybe
in a begin block?) or to use preparsed Templates, but that would solve
my 2. problem.

Thank you for your Time reading this post and for sharing your
experience with me.

ciao

Philipp

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

(message missing)

[Templates] Parsing all Templates in the include directory at startup time?
knoebi 05:40 on 25 Oct 2004

Re: [Templates] Performance on my new site is a drag
merlyn (Randal L. Schwartz) 22:32 on 25 Oct 2004

Re: [Templates] Performance on my new site is a drag
Perrin Harkins 18:43 on 25 Oct 2004

Re: [Templates] Performance on my new site is a drag
Perrin Harkins 19:18 on 25 Oct 2004

Re: [Templates] Performance on my new site is a drag
Perrin Harkins 20:46 on 25 Oct 2004

Re: [Templates] Performance on my new site is a drag
Geoffrey Young 02:18 on 26 Oct 2004

Re: [Templates] Performance on my new site is a drag
Perrin Harkins 14:40 on 29 Oct 2004

Re: [Templates] Performance on my new site is a drag
Perrin Harkins 15:07 on 29 Oct 2004

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