pull/368/head
midoks 2 years ago
parent e4582f328c
commit 53cb56ddf2
  1. 5
      class/core/mw.py
  2. 8
      plugins/op_waf/index.py

@ -309,6 +309,11 @@ def opLuaInitAccessFile():
opLuaMake('access_by_lua_file') opLuaMake('access_by_lua_file')
def opLuaMake():
opLuaInitFile()
opLuaInitWorkerFile()
opLuaInitAccessFile()
# ------------------------------ openresty end ----------------------------- # ------------------------------ openresty end -----------------------------

@ -356,9 +356,7 @@ def makeDstLua():
content = contentReplace(content) content = contentReplace(content)
mw.writeFile(access_file_dst, content) mw.writeFile(access_file_dst, content)
mw.opLuaInitFile() mw.opLuaMake()
mw.opLuaInitWorkerFile()
mw.opLuaInitAccessFile()
def initDreplace(): def initDreplace():
@ -450,9 +448,7 @@ def stop():
import tool_task import tool_task
tool_task.removeBgTask() tool_task.removeBgTask()
mw.opLuaInitFile() mw.opLuaMake()
mw.opLuaInitWorkerFile()
mw.opLuaInitAccessFile()
restartWeb() restartWeb()
return 'ok' return 'ok'

Loading…
Cancel
Save