Handle low memory notification.

This commit is contained in:
Brent Simmons committed 2026-03-07 16:56:09 -08:00
1 parent dff03b5dae
commit 737300bb0c
1 file changed
+2 -2
@@ -33,10 +33,10 @@ import RSParser
}()
init() {
NotificationCenter.default.addObserver(self, selector: #selector(emptyCaches), name: .lowMemory, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(handleLowMemory(_:)), name: .lowMemory, object: nil)
}
@objc func emptyCaches() {
@objc func handleLowMemory(_ notification: Notification) {
feedNameCache.removeAll()
titleCache.removeAll()
summaryCache.removeAll()