[Catalyst] Caching problem?

Matt S Trout dbix-class at trout.me.uk
Sat Jan 14 18:42:21 CET 2006


On Sat, Jan 14, 2006 at 06:26:18PM +0100, phaylon wrote:
> Brandon Black wrote:
> 
> > It does function correctly, it's just a matter of style and/or
> > correctness (I've tested a couple of simultaneous Response plugins
> > using the patch).  It does directly add base classes to
> > Catalyst::Response and friends (or more precisely, to whatever
> > $c->response_class is, which might not be Catalyst::Response).
> 
> There are two problems I can see when using this way instead of a newly
> created MyApp::Whatever:
> 
> 1) You can't override the methods, because the plugin is a base of the
>    Req/Resp object, so the original would overrule the plugins methods.
> 
> 2) If you're having more than one application loaded (e.g. under
>    mod_perl) you would change the Catalyst::Req/Resp class for all of
>    them.

Right. Brandon and I already discussed this on IRC but he had a real life
engagement and I was up to my eyes in the current DBIC branch so neither of
us remembered to reply to the thread. We're going to look at auto-creating
MyApp::Response et. al. instead when we both next have some time.

-- 
     Matt S Trout       Offering custom development, consultancy and support
  Technical Director    contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd.  mst (at) shadowcatsystems.co.uk for more information

 + Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +



More information about the Catalyst mailing list