From: Alexander Moisseev Date: Thu, 19 Apr 2018 18:47:28 +0000 (+0300) Subject: [Minor] Keep cursor permanently X-Git-Tag: 1.7.4~64^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F2187%2Fhead;p=thirdparty%2Frspamd.git [Minor] Keep cursor permanently --- diff --git a/src/plugins/lua/bayes_expiry.lua b/src/plugins/lua/bayes_expiry.lua index f50484d537..257503866c 100644 --- a/src/plugins/lua/bayes_expiry.lua +++ b/src/plugins/lua/bayes_expiry.lua @@ -266,8 +266,8 @@ local expiry_script = [[ end end - redis.call('SETEX', cursor_key, ${expire_step} * 10, tostring(next)) - redis.call('SETEX', step_key, ${expire_step} * 10, tostring(step)) + redis.call('SET', cursor_key, tostring(next)) + redis.call('SET', step_key, tostring(step)) redis.call('DEL', lock_key) return {next, step, nelts, extended, discriminated, mean, stddev, common, significant, infrequent, ttls_set}