fix: touch Redis upload cache key on GetLength to prevent TTL expiry (#5850)

This commit is contained in:
Arran 2026-03-26 15:27:28 +00:00 committed by GitHub
parent 6d44b3ae1d
commit 4812536555
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
}