mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-03 23:15:31 +00:00
[fenix] Increase AMO collection cache timeout to 2 days
This commit is contained in:
parent
76864a8ece
commit
07ddc9ae84
@ -31,7 +31,7 @@ import org.mozilla.fenix.utils.Settings
|
||||
import org.mozilla.fenix.wifi.WifiConnectionMonitor
|
||||
import java.util.concurrent.TimeUnit
|
||||
|
||||
private const val DAY_IN_MINUTES = 24 * 60L
|
||||
private const val AMO_COLLECTION_MAX_CACHE_AGE = 2 * 24 * 60L // Two days in minutes
|
||||
|
||||
/**
|
||||
* Provides access to all components. This class is an implementation of the Service Locator
|
||||
@ -102,12 +102,12 @@ class Components(private val context: Context) {
|
||||
serverURL = BuildConfig.AMO_SERVER_URL,
|
||||
collectionUser = BuildConfig.AMO_COLLECTION_USER,
|
||||
collectionName = BuildConfig.AMO_COLLECTION_NAME,
|
||||
maxCacheAgeInMinutes = DAY_IN_MINUTES
|
||||
maxCacheAgeInMinutes = AMO_COLLECTION_MAX_CACHE_AGE
|
||||
)
|
||||
}
|
||||
// Fall back to defaults
|
||||
else {
|
||||
AddonCollectionProvider(context, core.client, maxCacheAgeInMinutes = DAY_IN_MINUTES)
|
||||
AddonCollectionProvider(context, core.client, maxCacheAgeInMinutes = AMO_COLLECTION_MAX_CACHE_AGE)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user