diff --git a/damus/Views/ConfigView.swift b/damus/Views/ConfigView.swift index 43f1cd7..e17bc2f 100644 --- a/damus/Views/ConfigView.swift +++ b/damus/Views/ConfigView.swift @@ -6,6 +6,7 @@ // import AVFoundation import SwiftUI +import Kingfisher struct ConfigView: View { let state: DamusState @@ -113,6 +114,14 @@ struct ConfigView: View { } } + Section("Clear Cache") { + Button("Clear") { + KingfisherManager.shared.cache.clearMemoryCache() + KingfisherManager.shared.cache.clearDiskCache() + KingfisherManager.shared.cache.cleanExpiredDiskCache() + } + } + Section("Reset") { Button("Logout") { confirm_logout = true