Re: mod_perl comforts

2006-08-18 Thread Perrin Harkins
On Fri, 2006-08-18 at 13:27 -0500, Frank Wiles wrote: > It doesn't precompile them, so you do take the first hit per template, > but not per apache child. Because you can store a compiled version > of the template on disk where the other children can see it. To explain a bit further, there

Re: mod_perl comforts

2006-08-18 Thread Frank Wiles
On Thu, 17 Aug 2006 22:54:56 +0100 Joel Bernstein <[EMAIL PROTECTED]> wrote: > On Thu, Aug 17, 2006 at 04:50:46PM -0500, Frank Wiles wrote: > > On Thu, 17 Aug 2006 16:54:08 -0400 > > Jonathan Vanasco <[EMAIL PROTECTED]> wrote: > > > > > > > > On Aug 17, 2006, at 1:09 PM, Perrin Harkins wrote: >

Re: mod_perl comforts

2006-08-17 Thread Jonathan Vanasco
On Aug 17, 2006, at 5:50 PM, Frank Wiles wrote: TT handles all of that for you. It can even cache them on disk for you so you don't have to bother recompiling them on startup if they haven't changed. Petal does that as well. On Aug 17, 2006, at 5:54 PM, Joel Bernstein wrote: AFAIK TT

Re: mod_perl comforts

2006-08-17 Thread Joel Bernstein
On Thu, Aug 17, 2006 at 04:50:46PM -0500, Frank Wiles wrote: > On Thu, 17 Aug 2006 16:54:08 -0400 > Jonathan Vanasco <[EMAIL PROTECTED]> wrote: > > > > > On Aug 17, 2006, at 1:09 PM, Perrin Harkins wrote: > > > You should create a single Template object, put it in a global, and > > > reuse it. >

Re: mod_perl comforts

2006-08-17 Thread Frank Wiles
On Thu, 17 Aug 2006 16:54:08 -0400 Jonathan Vanasco <[EMAIL PROTECTED]> wrote: > > On Aug 17, 2006, at 1:09 PM, Perrin Harkins wrote: > > You should create a single Template object, put it in a global, and > > reuse it. > > I'm not sure how template toolkit works, but in Petal I loop through >

Re: mod_perl comforts

2006-08-17 Thread Jonathan Vanasco
On Aug 17, 2006, at 1:09 PM, Perrin Harkins wrote: You should create a single Template object, put it in a global, and reuse it. I'm not sure how template toolkit works, but in Petal I loop through all my templates and compile them into memory on startup. Adds 3mb to my parent process, bu

Re: mod_perl comforts

2006-08-17 Thread Perrin Harkins
On Thu, 2006-08-17 at 19:53 +0300, Vladimir S. Tikhonjuk wrote: > I used cookies and sessions to authenticate and authorizate user > into my app ( Apache2::AuthCookie ). So, every handler ( or most of them > ) have to get cookie, take a session id from it, makes session, and only > then > do it

Re: mod_perl comforts

2006-08-17 Thread Michael Peters
Arshavir Grigorian wrote: > The same thing happens with Tamplate object. Most part of my scripts > > have to generate output over a Template Toolkit. So, may I declare the > Template object in the only place, and then use it into response > handlers ? > > > You can create a Tem

Re: mod_perl comforts

2006-08-17 Thread Arshavir Grigorian
    The same thing happens with Tamplate object. Most part of my scriptshave to generate output over a Template Toolkit. So, may I declare the Template object in the only place, and then use it into response handlers ?You can create a Template object in your top handler, store it in  the request's

mod_perl comforts

2006-08-17 Thread Vladimir S. Tikhonjuk
Hi all! I need some advice on how to make some comfort into mod_perl Response Handler. I used cookies and sessions to authenticate and authorizate user into my app ( Apache2::AuthCookie ). So, every handler ( or most of them ) have to get cookie, take a session id from it, makes sess