Re: [Catalyst] Authorisation

2009-05-20 Thread Ivan Wills
2009/5/20 Tomas Doran > > On 19 May 2009, at 18:19, Ivan Wills wrote: > >> >> Thanks I did have a 'Plugin::Authentication' => {...} line, fixing that >> got rid of the spurious DB::User error. >> > > By 'fixing that' you mean moving all your config out of the > 'authentication' key, and into the

[Catalyst] Plugin::Cache silent failures

2009-05-20 Thread Bill Moseley
sub cache_set { my ( $c, $key, $value, %meta ) = @_; $c->choose_cache_backend_wrapper( key => $key, value => $value, %meta ) ->set( $key, $value, exists $meta{expires} ? $meta{expires} : () ); } Unfortunately, Cache::Entry doesn't really specify a return value for set(), but com

Re: [Catalyst] 15s latency with fastcgi+Apache2+catalyst 5.8

2009-05-20 Thread Paul Makepeace
On Wed, May 20, 2009 at 1:13 PM, Arjuna Del Toso wrote: > On Tue, 19 May 2009 17:49:32 +0100 > Paul Makepeace wrote: > >> I'm in the process of upgrading our app to Catalyst 5.8 and Apache 2 >> on a stock Debian box. The webpages are taking pretty much exactly 15s >> to load. I tried stripping ou

Re: [Catalyst] How and where to run a method at Catalyst start up?

2009-05-20 Thread Emmanuel Quevillon
Tomas Doran wrote: > Emmanuel Quevillon wrote: >> Thanks to try helping me. Here is the Trace from Devel::SimpleTrace. >> Actually, the error is not even when I try >> to call my method from my Catalyst::Model but when I start the dev >> server : > > Aha, yes - the stack trace makes it fairly clea

Re: [Catalyst] 15s latency with fastcgi+Apache2+catalyst 5.8

2009-05-20 Thread Tomas Doran
Arjuna Del Toso wrote: On Tue, 19 May 2009 17:49:32 +0100 Paul Makepeace wrote: Any other hints? My 2 cents: have you tried to disable mod_deflate (if running)? Oh yes, good call - that's a known gotcha. Can someone work up a doc note to stick in ::Engine::FastCGI about that? Cheers t0m

Re: [Catalyst] 15s latency with fastcgi+Apache2+catalyst 5.8

2009-05-20 Thread Arjuna Del Toso
On Tue, 19 May 2009 17:49:32 +0100 Paul Makepeace wrote: > I'm in the process of upgrading our app to Catalyst 5.8 and Apache 2 > on a stock Debian box. The webpages are taking pretty much exactly 15s > to load. I tried stripping out images and other media and even with it > down to the HTML & fa

Re: [Catalyst] How and where to run a method at Catalyst start up?

2009-05-20 Thread Tomas Doran
Emmanuel Quevillon wrote: Thanks to try helping me. Here is the Trace from Devel::SimpleTrace. Actually, the error is not even when I try to call my method from my Catalyst::Model but when I start the dev server : Aha, yes - the stack trace makes it fairly clear what's happening! Catalyst is

Re: [Catalyst] Problem with column in DBI

2009-05-20 Thread Tomas Doran
Naylor Garcia wrote: I need to make a select in database of the a specific column, but the result is a array. How I do to get a specific column? I think that you meant to post to the DBIC list. my $change_color = [$c->model('database::dominio')->search( { id_domain => 21240, name => {

Re: [Catalyst] How and where to run a method at Catalyst start up?

2009-05-20 Thread Emmanuel Quevillon
Emmanuel Quevillon wrote: >> I'd also recommend you start a new TestApp, and try to make just the >> smallest subset of an application you can to demonstrate / prototype >> out the functionality you want. >> >> a) This is gonna be easier to debug for you as there are less moving >> parts >> b) It'