Setting memcache keys in eval block

agentzh agentzh at gmail.com
Wed Feb 10 13:35:39 MSK 2010


On Wed, Feb 10, 2010 at 6:18 PM, Markus Jelsma <markus at buyways.nl> wrote:
> Thanks for your reply. The manual indeed tells us to set it inside the block,
> which i am doing. However, the first result cannot be passed to the second
> eval block;
>

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 ;)

Cheers,
-agentzh



More information about the nginx mailing list