You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/02/07 02:41:31 UTC
[GitHub] [apisix] ShaoZeMing commented on issue #3541: Add global plugins, such as cors, zipkin, and find that the response header appears twice. I want to know if the global plugin is called repeatedly internally, will this affect performance? ?
ShaoZeMing commented on issue #3541:
URL: https://github.com/apache/apisix/issues/3541#issuecomment-774579746
> It is fine to call global plugin multiple times, as there is a phase filter:
> https://github.com/apache/apisix/blob/e5cd46e38e09d1025817381a3bf0b85a4f02a528/apisix/init.lua#L573-L574
>
> If the global plugin doesn't define a method for a specific phase, it won't be run.
>
> cors / zipkin are needed to be run in multiple phases with different code. The same code won't be run twice.
Thank you
----------------------------------------------------------------
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:
users@infra.apache.org