[Catalyst] Re: Catalyst::Plugin::DBIC::QueryLog

Matt S Trout dbix-class at trout.me.uk
Tue Sep 4 13:34:45 GMT 2007

On Tue, Sep 04, 2007 at 12:02:14PM +0000, Fayland Lam wrote:
> Jonathan Rockway wrote:
> >Fayland Lam wrote:
> >>see attachment. check if it's OK?
> >>
> >>now it's not per request any more. hmm, after several requests,
> >mst wrote:
> >>That's trivial with Catalyst::Component::InstancePerContext.
> >
> >He intended for you to use that. 
> >
> >It implements the per-request magic for you with some clever use of
> >ACCEPT_CONTEXT and the stash.  Basically, it calls your builder method
> >if you don't already have an instance in $c->stash.  Since that gets
> >cleared every request, you get your per-request.
> >
> >So, try again :)  You're almost there :)
> Thank God. it works now. :)
> plz have a check, then I'll commit it to Catalyst trunk and release as a 
> CPAN module.



      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director    Want a managed development or deployment platform?
 Shadowcat Systems Ltd.  Contact mst (at) shadowcatsystems.co.uk for a quote
http://chainsawblues.vox.com/                    http://www.shadowcat.co.uk/ 

More information about the Catalyst mailing list