mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-22 12:03:58 +00:00
Avoid duplicate cache key calculation
This commit is contained in:
1 parent
094e88ebc8
commit
23b700358e
1 file changed
+1
-1
+1
-1
@@ -95,7 +95,7 @@ public final class CachingDispatch implements DispatchAsync {
|
||||
} else if (action instanceof HasClientCacheTotalTimeToLive) {
|
||||
cacheTotalTimeToLiveMillis = ((HasClientCacheTotalTimeToLive) action).cacheTotalTimeToLiveMillis();
|
||||
}
|
||||
resultsCache.put(key(clientCacheableAction), new ResultHolder(System.currentTimeMillis()
|
||||
resultsCache.put(instanceKey, new ResultHolder(System.currentTimeMillis()
|
||||
+ cacheTotalTimeToLiveMillis, result));
|
||||
LOG.finest("Added " + instanceKey + " to cache, ttl: " + cacheTotalTimeToLiveMillis + "ms");
|
||||
if (invalidationTask != null && !invalidationTask.isRunning()) {
|
||||
|
||||
Reference in new issue
Block a user