소스 검색

[Fix] Update is_spam in learned_ids when relearning

pull/4930/head
aduernberger 3 주 전
부모
커밋
ccc1716bb5
No account linked to committer's email address
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3
    2
      lualib/redis_scripts/bayes_cache_learn.lua

+ 3
- 2
lualib/redis_scripts/bayes_cache_learn.lua 파일 보기

@@ -15,7 +15,8 @@ for i = 0, conf.cache_max_keys do
local have = redis.call('HGET', prefix, cache_id)

if have then
-- Already in cache
-- Already in cache, but is_spam changes when relearning
redis.call('HSET', prefix, cache_id, is_spam)
return false
end
end
@@ -58,4 +59,4 @@ if not added then
end
end

return true
return true

Loading…
취소
저장