文件缓存增加自动限速/提升本地缓存数据库写入和查询速度

This commit is contained in:
GoEdgeLab
2022-04-20 18:23:26 +08:00
parent c8b8071bee
commit f39c59569a
7 changed files with 147 additions and 33 deletions

View File

@@ -314,7 +314,7 @@ func (this *HTTPWriter) PrepareCache(resp *http.Response, size int64) {
remotelogs.Error("HTTP_WRITER", "write cache failed: "+err.Error())
}
this.Header().Set("X-Cache", "BYPASS, open failed")
this.Header().Set("X-Cache", "BYPASS, too many requests")
return
}
this.cacheWriter = cacheWriter