From: Andrew Lewis Date: Fri, 28 Feb 2025 08:22:34 +0000 (+0200) Subject: [Minor] Forgot to use `SETEX` X-Git-Tag: 3.12.0~54^2~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=30ef468ffe8ed72eecda6aaff1e48bc178ac45a5;p=thirdparty%2Frspamd.git [Minor] Forgot to use `SETEX` --- diff --git a/src/plugins/lua/contextal.lua b/src/plugins/lua/contextal.lua index 8cc5cf1d05..20b5416d8d 100644 --- a/src/plugins/lua/contextal.lua +++ b/src/plugins/lua/contextal.lua @@ -97,8 +97,8 @@ local function process_actions(task, obj, is_cached) key, -- hash key true, -- is write redis_set_cb, --callback - 'SET', -- command - { key, ucl.to_format(cache_obj, 'json-compact') } -- arguments + 'SETEX', -- command + { key, settings.cache_ttl, ucl.to_format(cache_obj, 'json-compact') } -- arguments ) if not ret then