This is an automated email from the ASF dual-hosted git repository.

juzhiyuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-apisix.git


The following commit(s) were added to refs/heads/master by this push:
     new 54c2650  Add priority related information for plugin development doc 
(#1257)
54c2650 is described below

commit 54c2650a328b373e0cdff61f40271506f75bd2c8
Author: Yousa <snowfly1...@gmail.com>
AuthorDate: Fri Mar 13 23:41:23 2020 +0800

    Add priority related information for plugin development doc (#1257)
    
    * yousali:<doc>Add priority related information for plugin development 
guide doc / plugin-develop-cn.md
    
    * Revert "yousali:<doc>Add priority related information for plugin 
development guide doc / plugin-develop-cn.md"
    
    This reverts commit 839b9b62b77e425c0ecbf35eedbe9eaa0ccf27fa.
    
    * yousali:<doc>add a space between Chinese and English. add a space between 
Chinese and Number.
---
 doc/plugin-develop-cn.md | 2 +-
 doc/plugin-develop.md    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/doc/plugin-develop-cn.md b/doc/plugin-develop-cn.md
index 6bf6a9d..b1bc07e 100644
--- a/doc/plugin-develop-cn.md
+++ b/doc/plugin-develop-cn.md
@@ -69,7 +69,7 @@
    }
 ```
 
-注:新插件的优先级( priority 属性 )不能与现有插件的优先级相同。
+注:新插件的优先级( priority 属性 )不能与现有插件的优先级相同。另外,优先级( priority )值大的插件,会优先执行,比如 
`basic-auth` 的优先级是 2520 ,`ip-restriction` 的优先级是 3000 ,所以在每个阶段,会先执行 
`ip-restriction` 插件,再去执行 `basic-auth` 插件。
 
 在 __conf/config.yaml__ 配置文件中,列出了启用的插件(都是以插件名指定的):
 
diff --git a/doc/plugin-develop.md b/doc/plugin-develop.md
index 57af2dd..e2d4c66 100644
--- a/doc/plugin-develop.md
+++ b/doc/plugin-develop.md
@@ -72,7 +72,7 @@ determine the name and priority of the plugin, and add to 
conf/config.yaml. For
    }
 ```
 
-Note : The priority of the new plugin cannot be the same as the priority of 
any existing plugin.
+Note : The priority of the new plugin cannot be the same as the priority of 
any existing plugin. In addition, plugins with a high priority value will be 
executed first. For example, the priority of basic-auth is 2520 and the 
priority of ip-restriction is 3000. Therefore, the ip-restriction plugin will 
be executed first, then the basic-auth plugin.
 
 in the "__conf/config.yaml__" configuration file, the enabled plugins (all 
specified by plugin name) are listed.
 

Reply via email to