Edit maxAge parameter in okHttpClient

This commit is contained in:
CappielloAntonio
2022-01-11 11:07:40 +01:00
parent 7e639b823a
commit e5aec08c8e
7 changed files with 7 additions and 7 deletions

View File

@@ -70,7 +70,7 @@ public class AlbumSongListClient {
}
private OkHttpClient getOkHttpClient() {
CacheUtil cacheUtil = new CacheUtil(context, 60, 60 * 60 * 24 * 30);
CacheUtil cacheUtil = new CacheUtil(context, 10, 60 * 60 * 24 * 30);
return new OkHttpClient.Builder()
.addInterceptor(getHttpLoggingInterceptor())

View File

@@ -120,7 +120,7 @@ public class BrowsingClient {
}
private OkHttpClient getOkHttpClient() {
CacheUtil cacheUtil = new CacheUtil(context, 60, 60 * 60 * 24 * 30);
CacheUtil cacheUtil = new CacheUtil(context, 10, 60 * 60 * 24 * 30);
return new OkHttpClient.Builder()
.addInterceptor(getHttpLoggingInterceptor())

View File

@@ -55,7 +55,7 @@ public class MediaAnnotationClient {
}
private OkHttpClient getOkHttpClient() {
CacheUtil cacheUtil = new CacheUtil(context, 60, 60 * 60 * 24 * 30);
CacheUtil cacheUtil = new CacheUtil(context, 0, 60 * 60 * 24 * 30);
return new OkHttpClient.Builder()
.addInterceptor(getHttpLoggingInterceptor())

View File

@@ -45,7 +45,7 @@ public class MediaLibraryScanningClient {
}
private OkHttpClient getOkHttpClient() {
CacheUtil cacheUtil = new CacheUtil(context, 60, 60 * 60 * 24 * 30);
CacheUtil cacheUtil = new CacheUtil(context, 0, 60 * 60 * 24 * 30);
return new OkHttpClient.Builder()
.addInterceptor(getHttpLoggingInterceptor())

View File

@@ -50,7 +50,7 @@ public class MediaRetrievalClient {
}
private OkHttpClient getOkHttpClient() {
CacheUtil cacheUtil = new CacheUtil(context, 60, 60 * 60 * 24 * 30);
CacheUtil cacheUtil = new CacheUtil(context, 0, 60 * 60 * 24 * 30);
return new OkHttpClient.Builder()
.addInterceptor(getHttpLoggingInterceptor())

View File

@@ -45,7 +45,7 @@ public class SearchingClient {
}
private OkHttpClient getOkHttpClient() {
CacheUtil cacheUtil = new CacheUtil(context, 60, 60 * 60 * 24 * 30);
CacheUtil cacheUtil = new CacheUtil(context, 0, 60 * 60 * 24 * 30);
return new OkHttpClient.Builder()
.addInterceptor(getHttpLoggingInterceptor())

View File

@@ -45,7 +45,7 @@ public class SystemClient {
}
private OkHttpClient getOkHttpClient() {
CacheUtil cacheUtil = new CacheUtil(context, 60, 60 * 60 * 24 * 30);
CacheUtil cacheUtil = new CacheUtil(context, 0, 60 * 60 * 24 * 30);
return new OkHttpClient.Builder()
.addInterceptor(getHttpLoggingInterceptor())