diff --git a/backend/cache/handle.go b/backend/cache/handle.go index c1c0fc865..1556a468c 100644 --- a/backend/cache/handle.go +++ b/backend/cache/handle.go @@ -314,6 +314,7 @@ func (r *Handle) Close() error { waitIdx++ } } + r.memory.db.Flush() fs.Debugf(r, "cache reader closed %v", r.offset) return nil