aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lualib/redis_scripts/bayes_cache_learn.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lualib/redis_scripts/bayes_cache_learn.lua b/lualib/redis_scripts/bayes_cache_learn.lua
index 8811f3c33..4185e5741 100644
--- a/lualib/redis_scripts/bayes_cache_learn.lua
+++ b/lualib/redis_scripts/bayes_cache_learn.lua
@@ -43,7 +43,7 @@ if not added then
local exists = redis.call('EXISTS', prefix)
if exists then
- if expired then
+ if not expired then
redis.call('DEL', prefix)
redis.call('HSET', prefix, cache_id, is_spam)