From 893aae63a2725b2c9868c41fc38002309c07a7ce Mon Sep 17 00:00:00 2001 From: Roberto Doering Date: Mon, 10 Oct 2022 00:22:04 +0200 Subject: [PATCH] Increase cache times --- .../timeline/home_timeline/provider/home_timeline_provider.dart | 2 +- .../likes_timeline/provider/likes_timeline_provider.dart | 2 +- .../media_timeline/provider/media_timeline_provider.dart | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/components/timeline/home_timeline/provider/home_timeline_provider.dart b/lib/components/timeline/home_timeline/provider/home_timeline_provider.dart index 0bf2a09d7..43ed98f7e 100644 --- a/lib/components/timeline/home_timeline/provider/home_timeline_provider.dart +++ b/lib/components/timeline/home_timeline/provider/home_timeline_provider.dart @@ -8,7 +8,7 @@ import 'package:harpy/core/core.dart'; final homeTimelineProvider = StateNotifierProvider.autoDispose( (ref) { - ref.cacheFor(const Duration(minutes: 5)); + ref.cacheFor(const Duration(minutes: 15)); return HomeTimelineNotifier( ref: ref, diff --git a/lib/components/timeline/likes_timeline/provider/likes_timeline_provider.dart b/lib/components/timeline/likes_timeline/provider/likes_timeline_provider.dart index 43d75c115..6d892c757 100644 --- a/lib/components/timeline/likes_timeline/provider/likes_timeline_provider.dart +++ b/lib/components/timeline/likes_timeline/provider/likes_timeline_provider.dart @@ -7,7 +7,7 @@ import 'package:harpy/core/core.dart'; final likesTimelineProvider = StateNotifierProvider.autoDispose .family( (ref, userId) { - ref.cacheFor(const Duration(minutes: 5)); + ref.cacheFor(const Duration(minutes: 15)); return LikesTimelineNotifier( ref: ref, diff --git a/lib/components/timeline/media_timeline/provider/media_timeline_provider.dart b/lib/components/timeline/media_timeline/provider/media_timeline_provider.dart index 1bfeaa9aa..b99d44213 100644 --- a/lib/components/timeline/media_timeline/provider/media_timeline_provider.dart +++ b/lib/components/timeline/media_timeline/provider/media_timeline_provider.dart @@ -7,7 +7,7 @@ import 'package:harpy/core/core.dart'; final mediaTimelineProvider = Provider.autoDispose .family, BuiltList>( (ref, tweets) { - ref.cacheFor(const Duration(minutes: 5)); + ref.cacheFor(const Duration(minutes: 15)); final mediaPreferences = ref.watch(mediaPreferencesProvider); final connectivity = ref.watch(connectivityProvider);