spacewander commented on issue #3541: URL: https://github.com/apache/apisix/issues/3541#issuecomment-774576491
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. ---------------------------------------------------------------- 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: [email protected]
