diff --git a/app/Repositories/CleanupRepository.php b/app/Repositories/CleanupRepository.php index 9923a6a70..568e66fa0 100644 --- a/app/Repositories/CleanupRepository.php +++ b/app/Repositories/CleanupRepository.php @@ -183,7 +183,7 @@ private static function getAddRecordLuaScript(): string hashKey = ARGV[3] end redis.call("HSET", batchKey, hashKey, ARGV[6]) - if isBatchKeyNew then + if (isBatchKeyNew and k > 1) then redis.call("EXPIRE", batchKey, ARGV[5]) end end