Revert "fix(server): failed transcoded files should not be cached (#4124)"

This reverts commit 9dd5a8c334.
This commit is contained in:
Deluan
2025-05-27 19:53:10 -04:00
parent 71851b076c
commit de698918ac
2 changed files with 8 additions and 18 deletions
-1
View File
@@ -174,7 +174,6 @@ func (fc *fileCache) Get(ctx context.Context, arg Item) (*CachedStream, error) {
go func() {
if err := copyAndClose(w, reader); err != nil {
log.Debug(ctx, "Error storing file in cache", "cache", fc.name, "key", key, err)
_ = r.Close()
_ = fc.invalidate(ctx, key)
} else {
log.Trace(ctx, "File successfully stored in cache", "cache", fc.name, "key", key)