Setting memcache keys in eval block
agentzh
agentzh at gmail.com
Thu Feb 11 12:40:58 MSK 2010
On Thu, Feb 11, 2010 at 5:35 PM, agentzh <agentzh at gmail.com> wrote:
>
> location /echo {
> eval_subrequest_in_memory off;
> eval $union {
> echo_location_async /memc1;
> echo 'XXXX';
> echo_location_async /memc2;
> }
> if ($union ~ '(.*)XXXX\n(.*)') {
> set $res1 $1;
> set $res2 $2;
> ...
> }
> }
Oops, my bad! new subrequests issued by
echo_location/echo_location_async in an eval block will not work at
all because ngx_eval's output filter cannot capture its
sub-sub-request's output.
Sorry about that. My fork of ngx_eval is currently limited to content
handlers and output filters that do not issue subrequests themselves.
Cheers,
-agentzh
More information about the nginx
mailing list