Skip to content

Commit

Permalink
Increase latest feed cache invalidation to 7 days
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksandarIlic committed Jul 8, 2023
1 parent 259e908 commit 7fc1948
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class FeedRemoteMediator(
val firstPost = withContext(Dispatchers.IO) {
database.feedPosts().newestFeedPosts(query = feedQueryBuilder.feedQuery()).firstOrNull()
}
return firstPost.isOlderThan(3.days)
return firstPost.isOlderThan(7.days)
}

private suspend fun shouldRefreshNonLatestFeed(feedDirective: String): Boolean {
Expand Down

0 comments on commit 7fc1948

Please sign in to comment.