减少一些不必要的访问统计

This commit is contained in:
GoEdgeLab
2023-11-19 09:10:37 +08:00
parent 0b52e3319b
commit 6d76bf3433
4 changed files with 16 additions and 0 deletions

View File

@@ -478,3 +478,10 @@ func (this *HTTPRequest) WAFMaxRequestSize() int64 {
func (this *HTTPRequest) DisableAccessLog() {
this.disableLog = true
}
// DisableStat 停用统计
func (this *HTTPRequest) DisableStat() {
if this.web != nil {
this.web.StatRef = nil
}
}