Skip to content

Commit

Permalink
fix: Increase API's maxAge to 1 day
Browse files Browse the repository at this point in the history
  • Loading branch information
ponces committed Sep 15, 2022
1 parent 9f85450 commit 5d29603
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/services/github_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class GithubAPI {
final Dio _dio = Dio();
final DioCacheManager _dioCacheManager = DioCacheManager(CacheConfig());
final Options _cacheOptions = buildCacheOptions(
const Duration(hours: 1),
const Duration(days: 1),
maxStale: const Duration(days: 7),
);
final Map<String, String> repoAppPath = {
Expand Down
2 changes: 1 addition & 1 deletion lib/services/revanced_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class RevancedAPI {
final Dio _dio = Dio();
final DioCacheManager _dioCacheManager = DioCacheManager(CacheConfig());
final Options _cacheOptions = buildCacheOptions(
const Duration(hours: 1),
const Duration(days: 1),
maxStale: const Duration(days: 7),
);

Expand Down

0 comments on commit 5d29603

Please sign in to comment.