diff --git a/src/main/groovy/io/seqera/wave/proxy/ProxyCache.groovy b/src/main/groovy/io/seqera/wave/proxy/ProxyCache.groovy index 6714fe03f..bdab03bc2 100644 --- a/src/main/groovy/io/seqera/wave/proxy/ProxyCache.groovy +++ b/src/main/groovy/io/seqera/wave/proxy/ProxyCache.groovy @@ -38,7 +38,7 @@ import jakarta.inject.Singleton @CompileStatic class ProxyCache extends AbstractTieredCache { - @Value('${wave.proxy-cache.duration:1h}') + @Value('${wave.proxy-cache.duration:30m}') private Duration duration @Value('${wave.proxy-cache.max-size:10000}') diff --git a/src/main/groovy/io/seqera/wave/tower/client/TowerClient.groovy b/src/main/groovy/io/seqera/wave/tower/client/TowerClient.groovy index 3cec62af8..3b5e13caf 100644 --- a/src/main/groovy/io/seqera/wave/tower/client/TowerClient.groovy +++ b/src/main/groovy/io/seqera/wave/tower/client/TowerClient.groovy @@ -58,9 +58,6 @@ class TowerClient { @Value('${wave.pairing.cache.long.duration:24h}') private Duration cacheLongDuration - @Value('${wave.pairing.cache.long.duration:1h}') - private Duration cacheUserDuration - protected CompletableFuture getAsync(URI uri, String endpoint, @Nullable JwtAuth authorization, Class type) { assert uri, "Missing uri argument" @@ -80,7 +77,7 @@ class TowerClient { final k = RegHelper.sipHash(uri, authorization.key, null, null) // NOTE: it assumes the user info metadata does nor change over time // and therefore the *long* expiration cached is used - get0(uri, towerEndpoint, authorization, UserInfoResponse, k, cacheUserDuration) as UserInfoResponse + get0(uri, towerEndpoint, authorization, UserInfoResponse, k, cacheLongDuration) as UserInfoResponse } ListCredentialsResponse listCredentials(String towerEndpoint, JwtAuth authorization, Long workspaceId, String workflowId) {