mirror of
https://github.com/revanced/revanced-manager
synced 2024-05-14 13:56:57 +02:00
feat: decrease cache duration of patches and integrations.
This commit is contained in:
parent
a5511c2a2c
commit
ca0657e8f9
@ -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<String, String> repoAppPath = {
|
||||
'com.google.android.youtube': 'youtube',
|
||||
|
@ -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<void> initialize(String apiUrl) async {
|
||||
|
Loading…
Reference in New Issue
Block a user