diff --git a/coil-core/src/commonMain/kotlin/coil3/disk/DiskLruCache.kt b/coil-core/src/commonMain/kotlin/coil3/disk/DiskLruCache.kt index ae5d5fdb3e..ee3fa932d9 100644 --- a/coil-core/src/commonMain/kotlin/coil3/disk/DiskLruCache.kt +++ b/coil-core/src/commonMain/kotlin/coil3/disk/DiskLruCache.kt @@ -370,6 +370,7 @@ internal class DiskLruCache( writeByte(' '.code) writeUtf8(key) writeByte('\n'.code) + flush() } if (journalRewriteRequired()) { @@ -553,6 +554,7 @@ internal class DiskLruCache( writeByte(' '.code) writeUtf8(entry.key) writeByte('\n'.code) + flush() } lruEntries.remove(entry.key)