Skip to content

Commit

Permalink
storage: Set more aggressive cache expiration values
Browse files Browse the repository at this point in the history
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 (#1689)
Signed-off-by: Daniel D’Aquino <[email protected]>
Signed-off-by: William Casarin <[email protected]>
  • Loading branch information
danieldaquino authored and jb55 committed Nov 12, 2023
1 parent 386a284 commit 2a6c4d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions damus/Util/Extensions/KFOptionSetter+.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 2a6c4d0

Please sign in to comment.