]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Forgot to use `SETEX`
authorAndrew Lewis <nerf@judo.za.org>
Fri, 28 Feb 2025 08:22:34 +0000 (10:22 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Mon, 24 Mar 2025 11:54:51 +0000 (13:54 +0200)
src/plugins/lua/contextal.lua

index 8cc5cf1d05b79204573c4e7f2e70bba98631939b..20b5416d8d66377208453cc77fb543d6787ea633 100644 (file)
@@ -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