aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-home
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2015-09-30 15:34:39 +0200
committerDuarte Meneses <duarte.meneses@sonarsource.com>2015-10-01 14:34:34 +0200
commit40b5a0937811d860b97bbc57284a050c4b259b81 (patch)
tree02dcc17d13384c6f9ea95e48a46c57278f067ce8 /sonar-home
parent943e74fd412f701247e1bea5aa3760418a10ec0d (diff)
downloadsonarqube-40b5a0937811d860b97bbc57284a050c4b259b81.tar.gz
sonarqube-40b5a0937811d860b97bbc57284a050c4b259b81.zip
SONAR-6879 Don't delete cache if update fails and change strategy
Diffstat (limited to 'sonar-home')
-rw-r--r--sonar-home/src/main/java/org/sonar/home/cache/PersistentCacheBuilder.java2
1 files changed, 1 insertions, 1 deletions
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;
* </pre>
*/
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;