From e133bb46c391ca87f73bf53e327118938434a00a Mon Sep 17 00:00:00 2001 From: hoelee Date: Thu, 19 Feb 2026 12:36:00 +0800 Subject: [PATCH] feat(botfilter): add clientCache.observeResponse --- cache.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cache.go b/cache.go index e969291c..1e17d0fe 100644 --- a/cache.go +++ b/cache.go @@ -115,3 +115,8 @@ func (c *clientCache) observeRequest(ip string, observation requestObservation) return cacheResult{score: score} } +func (c *clientCache) observeResponse(ip string, status int, points int, now time.Time) cacheResult { + if ip == "" || status != 404 || points <= 0 { + return cacheResult{} + } +