Merge pull request #332 from samwafgo/fix_331_cache_memory

fix:memory cache
This commit is contained in:
samwafgo
2025-05-26 16:19:40 +08:00
committed by GitHub
+1 -1
View File
@@ -107,7 +107,7 @@ func StoreWebDataCache(resp *http.Response, hostSafe *wafenginmodel.HostSafe, ca
requestMethod := strings.ToLower(resp.Request.Method)
requestURI := resp.Request.RequestURI
zlog.Debug(fmt.Sprintf("缓存键组成部分 - 方法: %s, URI: %s", requestMethod, requestURI))
key := utils.Md5String(resp.Request.Method + requestURI)
key := utils.Md5String(requestMethod + requestURI)
if requestMethod == "post" || requestMethod == "put" {
zlog.Debug(fmt.Sprintf("缓存键组成部分 - BodyHash: %s (用于POST/PUT请求)", weblog.BodyHash))
key = utils.Md5String(requestMethod + requestURI + weblog.BodyHash)