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

Mark Ethan Trostler mark at zzo.com
Thu Oct 26 17:52:06 BST 2006


Ajax.
	Mark

Christopher H. Laco wrote:
> 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.
> 
> -=Chris
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> List: Catalyst at lists.rawmode.org
> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
> Dev site: http://dev.catalyst.perl.org/



More information about the Catalyst mailing list