From 48125365551ce2b27790aaafd7594cf5ce52f1ba Mon Sep 17 00:00:00 2001 From: Arran Date: Thu, 26 Mar 2026 15:27:28 +0000 Subject: [PATCH] fix: touch Redis upload cache key on GetLength to prevent TTL expiry (#5850) --- http/upload_cache_redis.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/http/upload_cache_redis.go b/http/upload_cache_redis.go index 9926eba2..9f2025bc 100644 --- a/http/upload_cache_redis.go +++ b/http/upload_cache_redis.go @@ -67,6 +67,8 @@ func (c *redisUploadCache) GetLength(filePath string) (int64, error) { return 0, fmt.Errorf("invalid upload length in cache: %w", err) } + c.Touch(filePath) + return size, nil }