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')
def opLuaMake():
opLuaInitFile()
opLuaInitWorkerFile()
opLuaInitAccessFile()
# ------------------------------ openresty end -----------------------------

@ -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'

Loading…
Cancel
Save