summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/cache/CacheBase.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/cache/CacheBase.java b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/cache/CacheBase.java
index ffc92d4e..8b701111 100644
--- a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/cache/CacheBase.java
+++ b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/cache/CacheBase.java
@@ -79,8 +79,8 @@ public abstract class CacheBase<T> {
ok = localLatch.await(waitTime, TimeUnit.SECONDS);
} catch (InterruptedException e) {
}
- if (!ok) {
- LOGGER.warn("CacheUpdate for " + getClass().getSimpleName() + " timed out, using old data.");
+ if (!ok && (System.currentTimeMillis() - cacheTimeout) > 86400_000) {
+ LOGGER.warn("CacheUpdate for " + getClass().getSimpleName() + " timed out, using old data from >= 1 day ago.");
}
synchronized (this) {
return cachedInstance;