diff --git a/class/core/mw.py b/class/core/mw.py index 448ac0f1e..d508baf8d 100755 --- a/class/core/mw.py +++ b/class/core/mw.py @@ -309,6 +309,11 @@ def opLuaInitAccessFile(): opLuaMake('access_by_lua_file') +def opLuaMake(): + opLuaInitFile() + opLuaInitWorkerFile() + opLuaInitAccessFile() + # ------------------------------ openresty end ----------------------------- diff --git a/plugins/op_waf/index.py b/plugins/op_waf/index.py index de99dd7d4..a75bc3ab0 100755 --- a/plugins/op_waf/index.py +++ b/plugins/op_waf/index.py @@ -356,9 +356,7 @@ def makeDstLua(): content = contentReplace(content) mw.writeFile(access_file_dst, content) - mw.opLuaInitFile() - mw.opLuaInitWorkerFile() - mw.opLuaInitAccessFile() + mw.opLuaMake() def initDreplace(): @@ -450,9 +448,7 @@ def stop(): import tool_task tool_task.removeBgTask() - mw.opLuaInitFile() - mw.opLuaInitWorkerFile() - mw.opLuaInitAccessFile() + mw.opLuaMake() restartWeb() return 'ok'