aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2025-02-28 10:22:34 +0200
committerAndrew Lewis <nerf@judo.za.org>2025-03-24 13:54:51 +0200
commit30ef468ffe8ed72eecda6aaff1e48bc178ac45a5 (patch)
treed04a3f3ceb6df067e438e88767048e7a5ee46b4f /src
parent2c3dbe5779e488ea7d467c9f0c28831b444a1d4c (diff)
downloadrspamd-30ef468ffe8ed72eecda6aaff1e48bc178ac45a5.tar.gz
rspamd-30ef468ffe8ed72eecda6aaff1e48bc178ac45a5.zip
[Minor] Forgot to use `SETEX`
Diffstat (limited to 'src')
-rw-r--r--src/plugins/lua/contextal.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/contextal.lua b/src/plugins/lua/contextal.lua
index 8cc5cf1d0..20b5416d8 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