[Catalyst] Caching problem?
Matt S Trout
dbix-class at trout.me.uk
Wed Jan 11 22:34:22 CET 2006
On Wed, Jan 11, 2006 at 03:13:58PM -0600, Brandon Black wrote:
> On 1/11/06, Matt S Trout <dbix-class at trout.me.uk> wrote:
> > So long as you do it by setting MyApp->response_class and not by messing
> > with Catalyst::Response directly :)
> >
>
> You mean like this? :)
>
> ---------------------------------------------------------------------
> package Catalyst::Plugin::Response::NoCache;
> ...
> --------------------------------------------------
MY EYES!
> What's the "right" way to do it with response_class? Subclass
> Catalyst::Request and set response_class to that from withint the
> plugin somehow?
Assuming "Catalyst::Request" was a typo for Response, exactly that. You
could also consider not bothering with a plugin at all and having the standard
way to use it be simply -
use Catalyst::Response::NoCache;
__PACKAGE__->response_class('Catalyst::Response::NoCache');
--
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