mirror of
https://github.com/yattee/yattee.git
synced 2026-10-23 13:12:53 +00:00
Spend the deferred purge when its load is discarded
The flag stayed set on the path that rejects a stale disk load, where no later load will ever consult it. Nothing stale survives either way — the purge that invalidated the load did the work itself — but a flag left raised is a question for the next reader.
This commit is contained in:
@@ -77,6 +77,9 @@ final class HomeInstanceCache {
|
||||
// finds nothing to drop and this would quietly reinstate the
|
||||
// previous login's private feeds.
|
||||
guard generation == accountGeneration else {
|
||||
// Whatever asked for the purge has already done it — this is
|
||||
// the only load there will be, so the request is spent too.
|
||||
pendingFeedPurge = false
|
||||
LoggingService.shared.info(
|
||||
"Discarding a disk cache that belongs to the previous login",
|
||||
category: .general
|
||||
|
||||
Reference in New Issue
Block a user