Hello!
On Tue, Apr 9, 2013 at 11:39 AM, agentzh wrote:
> location / {
> ...
> srcache_store PUT /sub $key;
> }
>
> location = /sub {
> internal;
> content_by_lua '
> local key = ngx.unescape_uri(ngx.var.arg_key)
不好意思,这里有一处笔误。应当把这一行
local key = ngx.unescape_uri(ngx.var.arg_key)
替换为
local key = ngx.var.args
毕竟,在 srcache_store 配置指令中,key 是直接作为 URL querystring 这个整体来传递给子请求的。
Best regards,
-agentzh