Open Downchuck opened 11 years ago
Hello!
On Sun, Apr 14, 2013 at 6:33 PM, Charles Pritchard <notifications@github.com
wrote:
If it's feasible, an option for echo_location and echo_location_async to ignore the output of the subrequests would be helpful for running some subrequests that handle various cleanup. memc "get" followed by memc "delete" for example.
This can be trivially achieved via the ngx_lua module, for instance,
location = /t {
access_by_lua '
ngx.location.capture("/memc?key=foo&cmd=get")
ngx.location.capture("/memc?key=foo&cmd=delete")
';
echo hello world;
}
See http://wiki.nginx.org/HttpLuaModule for details.
I'd make ngx_echo stay simple :)
Best regards, -agentzh
If it's feasible, an option for echo_location and echo_location_async to ignore the output of the subrequests would be helpful for running some subrequests that handle various cleanup. memcache "get" followed by memc "delete" for example.