damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 2a6c4d0b61c168755dd04707d6105f6bafc0ed3a
parent 386a28455aec9abc56348b32e1c71a6a68b76834
Author: Daniel D’Aquino <daniel@daquino.me>
Date:   Fri, 10 Nov 2023 20:09:01 +0000

storage: Set more aggressive cache expiration values

I am setting the expiration values lower because it seems that the previous values were not keeping storage usage low enough.

Testing: Testing will be performed as a long-term test on Github issue #1689 (https://github.com/damus-io/damus/issues/1689)
Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mdamus/Util/Extensions/KFOptionSetter+.swift | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/damus/Util/Extensions/KFOptionSetter+.swift b/damus/Util/Extensions/KFOptionSetter+.swift @@ -30,13 +30,13 @@ extension KFOptionSetter { switch imageContext { case .pfp: - options.diskCacheExpiration = .never + options.diskCacheExpiration = .days(60) break case .banner: - options.diskCacheExpiration = .days(14) + options.diskCacheExpiration = .days(5) break case .note: - options.diskCacheExpiration = .days(7) + options.diskCacheExpiration = .days(1) break }