From: Dmitriy Alekseev <1865999+dragoangel@users.noreply.github.com> Date: Tue, 4 Mar 2025 19:26:56 +0000 (+0100) Subject: [Fix] Expire neural ham and spam sets so they not hangup in redis indefinitely X-Git-Tag: 3.11.1~6^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ef4e663cc1ef026e3ef80746ef744a08e881561;p=thirdparty%2Frspamd.git [Fix] Expire neural ham and spam sets so they not hangup in redis indefinitely --- diff --git a/lualib/redis_scripts/neural_save_unlock.lua b/lualib/redis_scripts/neural_save_unlock.lua index 5af1ddcde0..bb5f69531b 100644 --- a/lualib/redis_scripts/neural_save_unlock.lua +++ b/lualib/redis_scripts/neural_save_unlock.lua @@ -17,8 +17,10 @@ redis.call('DEL', KEYS[1] .. '_ham_set') redis.call('HDEL', KEYS[1], 'lock') redis.call('HDEL', KEYS[7], 'lock') redis.call('EXPIRE', KEYS[1], tonumber(KEYS[5])) +redis.call('EXPIRE', KEYS[1] .. '_spam_set', tonumber(KEYS[5])) +redis.call('EXPIRE', KEYS[1] .. '_ham_set', tonumber(KEYS[5])) redis.call('HSET', KEYS[1], 'roc_thresholds', KEYS[8]) if KEYS[9] then redis.call('HSET', KEYS[1], 'pca', KEYS[9]) end -return 1 \ No newline at end of file +return 1