From 2a6c4d0b61c168755dd04707d6105f6bafc0ed3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20D=E2=80=99Aquino?= Date: Fri, 10 Nov 2023 20:09:01 +0000 Subject: [PATCH] storage: Set more aggressive cache expiration values MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: William Casarin --- damus/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 index 264fa77ab..f1dea588f 100644 --- 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 }