From 40b5a0937811d860b97bbc57284a050c4b259b81 Mon Sep 17 00:00:00 2001 From: Duarte Meneses Date: Wed, 30 Sep 2015 15:34:39 +0200 Subject: SONAR-6879 Don't delete cache if update fails and change strategy --- .../src/main/java/org/sonar/home/cache/PersistentCacheBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sonar-home/src/main') diff --git a/sonar-home/src/main/java/org/sonar/home/cache/PersistentCacheBuilder.java b/sonar-home/src/main/java/org/sonar/home/cache/PersistentCacheBuilder.java index 152f17fc402..b58102cbf8c 100644 --- a/sonar-home/src/main/java/org/sonar/home/cache/PersistentCacheBuilder.java +++ b/sonar-home/src/main/java/org/sonar/home/cache/PersistentCacheBuilder.java @@ -37,7 +37,7 @@ import javax.annotation.Nullable; * */ public class PersistentCacheBuilder { - private static final long DEFAULT_EXPIRE_DURATION = TimeUnit.MILLISECONDS.convert(1L, TimeUnit.DAYS); + private static final long DEFAULT_EXPIRE_DURATION = TimeUnit.MILLISECONDS.convert(9999L, TimeUnit.DAYS); private static final String DIR_NAME = "ws_cache"; private Path cacheBasePath; -- cgit v1.2.3