(search) Remove endpoint flush-search-caches

It's not necessary anymore with the new linkdb.
This commit is contained in:
Viktor Lofgren 2023-08-25 09:51:06 +02:00
parent 5ed5298409
commit e741301417
3 changed files with 0 additions and 20 deletions

View File

@ -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);

View File

@ -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");

View File

@ -55,18 +55,6 @@
</form>
</td>
</tr>
<tr>
<td><b>Flush <tt>search-service</tt> Caches</b><p>
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.
</td>
<td>
<form method="post" action="/actions/flush-search-caches" onsubmit="return confirm('Confirm flushing search chaches')">
<input type="submit" value="Flush Search">
</form>
</td>
</tr>
<tr>
<td><b>Flush <tt>api-service</tt> Caches</b><p>
This will instruct the api-service to flush its caches,