diff --git a/plugins/op_waf/waf/html/safe_js.html b/plugins/op_waf/waf/html/safe_js.html index 963a6df63..763cd60c5 100755 --- a/plugins/op_waf/waf/html/safe_js.html +++ b/plugins/op_waf/waf/html/safe_js.html @@ -131,7 +131,6 @@ var ok = setInterval(function(){ ajax('JSON',true).post('/{uri}',{'pass':"ok"},function(data){ if (data['status'] == 0){ - // document.getElementById('status').innerHTML = "ok"; location.reload(); } }); diff --git a/plugins/op_waf/waf/lua/common.lua b/plugins/op_waf/waf/lua/common.lua index 4de87d0a1..413fb6893 100644 --- a/plugins/op_waf/waf/lua/common.lua +++ b/plugins/op_waf/waf/lua/common.lua @@ -336,7 +336,7 @@ function _M.inc_log(self, name, rule) ngx.shared.limit:set(total_path,total_log) -- 异步执行 - ngx.timer.at(1, timer_at_inc_log) + ngx.timer.at(0, timer_at_inc_log) end