diff --git a/code/services-core/control-service/src/main/java/nu/marginalia/control/ControlService.java b/code/services-core/control-service/src/main/java/nu/marginalia/control/ControlService.java index e746cdac..773f9597 100644 --- a/code/services-core/control-service/src/main/java/nu/marginalia/control/ControlService.java +++ b/code/services-core/control-service/src/main/java/nu/marginalia/control/ControlService.java @@ -184,7 +184,6 @@ public class ControlService extends Service { Spark.post("/public/actions/repartition-index", controlActionsService::triggerRepartition, redirectToActors); Spark.post("/public/actions/reconstruct-index", controlActionsService::triggerIndexReconstruction, redirectToActors); Spark.post("/public/actions/trigger-data-exports", controlActionsService::triggerDataExports, redirectToActors); - Spark.post("/public/actions/flush-search-caches", controlActionsService::flushSearchCaches, redirectToActors); Spark.post("/public/actions/flush-api-caches", controlActionsService::flushApiCaches, redirectToActors); Spark.post("/public/actions/truncate-links-database", controlActionsService::truncateLinkDatabase, redirectToActors); diff --git a/code/services-core/control-service/src/main/java/nu/marginalia/control/svc/ControlActionsService.java b/code/services-core/control-service/src/main/java/nu/marginalia/control/svc/ControlActionsService.java index ff8c5744..1f191a62 100644 --- a/code/services-core/control-service/src/main/java/nu/marginalia/control/svc/ControlActionsService.java +++ b/code/services-core/control-service/src/main/java/nu/marginalia/control/svc/ControlActionsService.java @@ -71,13 +71,6 @@ public class ControlActionsService { return ""; } - public Object flushSearchCaches(Request request, Response response) throws Exception { - eventLog.logEvent("USER-ACTION", "FLUSH-SEARCH-CACHES"); - searchClient.outbox().sendNotice(SearchMqEndpoints.FLUSH_CACHES, ""); - - return ""; - } - public Object reloadBlogsList(Request request, Response response) throws Exception { eventLog.logEvent("USER-ACTION", "RELOAD-BLOGS-LIST"); diff --git a/code/services-core/control-service/src/main/resources/templates/control/actions.hdb b/code/services-core/control-service/src/main/resources/templates/control/actions.hdb index 351fbe5d..7e3a388b 100644 --- a/code/services-core/control-service/src/main/resources/templates/control/actions.hdb +++ b/code/services-core/control-service/src/main/resources/templates/control/actions.hdb @@ -55,18 +55,6 @@ -
- This will instruct the search-service to flush its caches, - getting rid of any stale data. This may rarely be necessary after - reloading the index. -
This will instruct the api-service to flush its caches,