From 5bc3bf70505305246a8283993933eeeb14abe35d Mon Sep 17 00:00:00 2001 From: Rohit Ashiwal Date: Wed, 27 Mar 2024 22:25:14 +0530 Subject: [PATCH] specify _all as target in ClearCacheModal When none of the indices are selected, ClearCacheModal makes call to `//_cache/clear` path. Here, the intention is to clear the cache for all indices, let's make it explicit by passing `_all` as target. New call: `/_all/_cache/clear` Signed-off-by: Rohit Ashiwal --- public/containers/ClearCacheModal/ClearCacheModal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/containers/ClearCacheModal/ClearCacheModal.tsx b/public/containers/ClearCacheModal/ClearCacheModal.tsx index 0855da739..6597c0d52 100644 --- a/public/containers/ClearCacheModal/ClearCacheModal.tsx +++ b/public/containers/ClearCacheModal/ClearCacheModal.tsx @@ -113,7 +113,7 @@ export default function ClearCacheModal(props: ClearCacheModalProps) { const result = await services.commonService.apiCaller({ endpoint: "indices.clearCache", data: { - index: unBlockedItems.join(","), + index: unBlockedItems.join(",") || "_all", }, }); if (result && result.ok) {