mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-02 10:22:35 +00:00
Handle low memory notification.
This commit is contained in:
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()
|
||||
|
||||
Reference in new issue
Block a user