[Catalyst] Re: How to redirect before some code excute
Christopher H. Laco
claco at chrislaco.com
Thu Oct 26 15:26:43 GMT 2006
Carl Franks wrote:
> 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
Personally, rather than fork, I'd suggest some sort of message/request
queue.
-=3DChris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://jules.scsys.co.uk/pipermail/catalyst/attachments/20061026/9e51=
ebfa/signature.pgp
More information about the Catalyst
mailing list