mirror of
https://github.com/filebrowser/filebrowser.git
synced 2026-07-27 09:50:40 +00:00
fix: touch Redis upload cache key on GetLength to prevent TTL expiry (#5850)
This commit is contained in:
parent
6d44b3ae1d
commit
4812536555
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue