From 741c80cc19791dba4cec292e3a2890bf9efafb5b Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Wed, 1 Mar 2023 20:06:07 +0100 Subject: [PATCH] fixed code --- .../resourceregistry/api/contexts/ContextCache.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/gcube/informationsystem/resourceregistry/api/contexts/ContextCache.java b/src/main/java/org/gcube/informationsystem/resourceregistry/api/contexts/ContextCache.java index 9612921..41b1472 100644 --- a/src/main/java/org/gcube/informationsystem/resourceregistry/api/contexts/ContextCache.java +++ b/src/main/java/org/gcube/informationsystem/resourceregistry/api/contexts/ContextCache.java @@ -89,7 +89,7 @@ public class ContextCache { if((now.after(expiringTime) || (contexts==null)) && contextCacheRenewal!=null) { try { List contexts = contextCacheRenewal.renew(); - singleton.cleanCache(now); + cleanCache(now); setContexts(contexts); } catch (ResourceRegistryException e) { logger.error("Unable to refresh Cache", e);