[GitHub] [apisix] spacewander commented on issue #3903: request help: Accessing ctx.var.upstream_uri in global rule causes failure of proxy-rewrite
spacewander commented on issue #3903: URL: https://github.com/apache/apisix/issues/3903#issuecomment-820165163 Solved by #3915 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix] spacewander commented on issue #3903: request help: Accessing ctx.var.upstream_uri in global rule causes failure of proxy-rewrite
spacewander commented on issue #3903: URL: https://github.com/apache/apisix/issues/3903#issuecomment-807927812 Another solution is to use a new way to cache `ctx.var`: https://github.com/apache/apisix/pull/3915 This way has performance slow down, CC @membphis -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix] spacewander commented on issue #3903: request help: Accessing ctx.var.upstream_uri in global rule causes failure of proxy-rewrite
spacewander commented on issue #3903: URL: https://github.com/apache/apisix/issues/3903#issuecomment-807926957 One solution is to use ngx.var instead: https://github.com/apache/apisix/pull/3914 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [apisix] spacewander commented on issue #3903: request help: Accessing ctx.var.upstream_uri in global rule causes failure of proxy-rewrite
spacewander commented on issue #3903: URL: https://github.com/apache/apisix/issues/3903#issuecomment-807926060 It is because `ctx.var` caches the result: https://github.com/apache/apisix/blob/83931ba0a5c95e04ec867a4ffd0821d426ca0d27/apisix/core/ctx.lua#L186 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org