summaryrefslogtreecommitdiff
path: root/Sora/Data/Booru/BooruManager.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Sora/Data/Booru/BooruManager.swift')
-rw-r--r--Sora/Data/Booru/BooruManager.swift6
1 files changed, 5 insertions, 1 deletions
diff --git a/Sora/Data/Booru/BooruManager.swift b/Sora/Data/Booru/BooruManager.swift
index 1458636..8f6fbd7 100644
--- a/Sora/Data/Booru/BooruManager.swift
+++ b/Sora/Data/Booru/BooruManager.swift
@@ -126,7 +126,11 @@ class BooruManager: ObservableObject { // swiftlint:disable:this type_body_leng
}
}
- let cacheEntry = BooruPageCacheEntry(posts: finalPosts, timestamp: Date())
+ let cacheEntry = BooruPageCacheEntry(
+ posts: finalPosts,
+ timestamp: Date(),
+ expiration: cacheDuration
+ )
pageCache.setObject(cacheEntry, forKey: cacheKey)