Make max cache size functional again

This commit is contained in:
Ali
2022-12-24 22:45:14 +04:00
parent 3d821c8604
commit 880b97eaeb
3 changed files with 21 additions and 10 deletions

View File

@@ -193,11 +193,10 @@ public final class MediaBox {
postboxLog(string)
}), basePath: basePath + "/storage")
self.timeBasedCleanup = TimeBasedCleanup(generalPaths: [
//self.basePath,
self.timeBasedCleanup = TimeBasedCleanup(storageBox: self.storageBox, generalPaths: [
self.basePath + "/cache",
self.basePath + "/animation-cache"
], shortLivedPaths: [
], totalSizeBasedPath: self.basePath, shortLivedPaths: [
self.basePath + "/short-cache"
])