diff --git a/lib/services/github_api.dart b/lib/services/github_api.dart index 8e32ae60..cfa13e44 100644 --- a/lib/services/github_api.dart +++ b/lib/services/github_api.dart @@ -20,8 +20,8 @@ class GithubAPI { ); final DioCacheManager _dioCacheManager = DioCacheManager(CacheConfig()); final Options _cacheOptions = buildCacheOptions( - const Duration(days: 1), - maxStale: const Duration(days: 7), + const Duration(hours: 6), + maxStale: const Duration(days: 1), ); final Map repoAppPath = { 'com.google.android.youtube': 'youtube', diff --git a/lib/services/revanced_api.dart b/lib/services/revanced_api.dart index ecfeac63..10d713cd 100644 --- a/lib/services/revanced_api.dart +++ b/lib/services/revanced_api.dart @@ -13,8 +13,8 @@ class RevancedAPI { late Dio _dio = Dio(); final DioCacheManager _dioCacheManager = DioCacheManager(CacheConfig()); final Options _cacheOptions = buildCacheOptions( - const Duration(days: 1), - maxStale: const Duration(days: 7), + const Duration(hours: 6), + maxStale: const Duration(days: 1), ); Future initialize(String apiUrl) async {