[Catalyst] Re: How to redirect before some code excute

Carl Franks fireartist at gmail.com
Thu Oct 26 15:15:18 GMT 2006


On 26/10/06, leonard.a.jaffe at jpmchase.com <leonard.a.jaffe at jpmchase.com> wrote:
>
> Fayland Lam <fayland at gmail.com> wrote:
> >
> > Lee Standen wrote:
> > > It's a subroutine, right?
> > >
> > > Tried a return?....such as:
> > >
> > > $c->res->redirect('http://www.yahoo.com');
> > > return undef;
> >
> > Indeed I want to run the 'while' loop in backend. 'return' would not run
> > the loop I think.
>
> Why do you want to run the loop in the background?
> What purpose will it serve?
>
> If we can learn your motivation, we can try to find you
> At Least One Way To Do It.

It's not that unusual to want to send a response before doing
expensive operations, so that the user doesn't have to wait.

Does fork() play well with catalyst? (I've not yet had a need to try it myself)

Carl



More information about the Catalyst mailing list