Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/org.eclipse.osee.ats.api/src/org/eclipse/osee/ats/api/config/AtsConfigEndpointApi.java2
-rw-r--r--plugins/org.eclipse.osee.ats.rest/src/org/eclipse/osee/ats/rest/internal/config/AtsConfigEndpointImpl.java13
2 files changed, 12 insertions, 3 deletions
diff --git a/plugins/org.eclipse.osee.ats.api/src/org/eclipse/osee/ats/api/config/AtsConfigEndpointApi.java b/plugins/org.eclipse.osee.ats.api/src/org/eclipse/osee/ats/api/config/AtsConfigEndpointApi.java
index e5695286b7..b9609dc986 100644
--- a/plugins/org.eclipse.osee.ats.api/src/org/eclipse/osee/ats/api/config/AtsConfigEndpointApi.java
+++ b/plugins/org.eclipse.osee.ats.api/src/org/eclipse/osee/ats/api/config/AtsConfigEndpointApi.java
@@ -51,7 +51,7 @@ public interface AtsConfigEndpointApi {
@GET
@Path("clearcache")
@Produces(MediaType.APPLICATION_JSON)
- public AtsConfigurations clearCaches();
+ public String clearCaches();
/**
* @return html5 action entry page
diff --git a/plugins/org.eclipse.osee.ats.rest/src/org/eclipse/osee/ats/rest/internal/config/AtsConfigEndpointImpl.java b/plugins/org.eclipse.osee.ats.rest/src/org/eclipse/osee/ats/rest/internal/config/AtsConfigEndpointImpl.java
index d7ecb28fb7..9f00cdad4d 100644
--- a/plugins/org.eclipse.osee.ats.rest/src/org/eclipse/osee/ats/rest/internal/config/AtsConfigEndpointImpl.java
+++ b/plugins/org.eclipse.osee.ats.rest/src/org/eclipse/osee/ats/rest/internal/config/AtsConfigEndpointImpl.java
@@ -296,9 +296,18 @@ public final class AtsConfigEndpointImpl implements AtsConfigEndpointApi {
@GET
@Path("clearcache")
@Produces(MediaType.APPLICATION_JSON)
- public AtsConfigurations clearCaches() {
+ public String clearCaches() {
atsConfigurations = null;
- return get();
+ Thread thread = new Thread() {
+
+ @Override
+ public void run() {
+ super.run();
+ get();
+ }
+ };
+ thread.start();
+ return "Complete";
}
@GET

Back to the top