Welcome! Log In Create A New Profile

Advanced

Re: Setting memcache keys in eval block

Valery Kholodkov
February 14, 2010 10:36AM
Markus Jelsma wrote:
> Thank you for your quick answer, although it is not quite a satisfaction to
> read it's not possible at the moment.
>
> How can i stay up to date for such a feature if it were to be implemented in
> the - hopefully nearby - future?

I just have pushed a change to nginx eval module which allows multiple
eval blocks in one location:

http://github.com/vkholodkov/nginx-eval-module/tree/bba2d53fc1d8f118fb79424250db8c9e832b66c1

Hope this helps!

>
> I have another question, is my current solution really much slower than doing
> it all in one location directive? I am now proxying the request the myself
> where i can set the second eval block.
>
> I did perform some simple benchmarks but they aren't really alright since i
> cannot really compare the situations but 2 http requests + 2 memcache requests
> are quite slow in the end.
>
> Thanks.
>
>
>> No, it won't work. According to the current implementation, only one
>> eval block can take effect in a single location.
>>
>> I must admit parallel eval blocks can be very useful and I believe
>> it should not be that hard to implement. But I have other missions to
>> do first atm ;)
>>
>> Actually I want something much more general, that can be mixed with
>> other rewrite directives, like this:
>>
>> set $foo 'hi';
>> set_capture_location $res '/foo';
>> if ($res ~ 'xxx') { ... }
>> set_capture_subrequest $res POST '/bar' 'body here';
>> if ($res ~ 'xxx') { ... }
>> ....
>>
>> I'll ask Marcus Clyne if he has any plan to add support for such
>> things to his set_var submodule in his grand NDK project. Then an
>> ngx_capture module should be straightforward ;)

--
Best regards,
Valery Kholodkov

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Setting memcache keys in eval block

Markus Jelsma February 08, 2010 07:48AM

Re: Setting memcache keys in eval block

agentzh February 08, 2010 09:44PM

Re: Setting memcache keys in eval block

Markus Jelsma February 10, 2010 05:24AM

Re: Setting memcache keys in eval block

agentzh February 10, 2010 05:40AM

Re: Setting memcache keys in eval block

Markus Jelsma February 10, 2010 05:52AM

Re: Setting memcache keys in eval block

Eugaia February 10, 2010 11:10PM

Re: Setting memcache keys in eval block

agentzh February 11, 2010 10:30PM

Re: Setting memcache keys in eval block

agentzh February 11, 2010 04:38AM

Re: Setting memcache keys in eval block

agentzh February 11, 2010 04:44AM

Re: Setting memcache keys in eval block

agentzh February 11, 2010 10:28PM

Re: Setting memcache keys in eval block

Markus Jelsma February 12, 2010 05:00AM

Re: Setting memcache keys in eval block

agentzh February 13, 2010 05:26AM

Re: Setting memcache keys in eval block

Valery Kholodkov February 14, 2010 10:36AM

Re: Setting memcache keys in eval block

Markus Jelsma February 14, 2010 03:04PM

Re: Setting memcache keys in eval block

Markus Jelsma February 15, 2010 05:06AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 147
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready