diff --git a/src/main/java/org/gcube/informationsystem/resourceregistry/contexts/ServerContextCache.java b/src/main/java/org/gcube/informationsystem/resourceregistry/contexts/ServerContextCache.java index 9edfc1a..20a84bd 100644 --- a/src/main/java/org/gcube/informationsystem/resourceregistry/contexts/ServerContextCache.java +++ b/src/main/java/org/gcube/informationsystem/resourceregistry/contexts/ServerContextCache.java @@ -66,12 +66,11 @@ public class ServerContextCache extends ContextCache { uuidToContextMetaPrivacy = null; contextsNoMeta = null; uuidToContextNoMeta = null; - } public ServerContextCache() { - super(); - cleanCache(); + Calendar now = Calendar.getInstance(); + cleanCache(now); initContextCacheRenewal(); } @@ -149,7 +148,7 @@ public class ServerContextCache extends ContextCache { } @Override - public void setContexts(List contexts) { + protected void setContexts(Calendar calendar, List contexts) { this.contexts = new ArrayList<>(); this.uuidToContext = new LinkedHashMap<>();