Skip to content

Commit

Permalink
specify _all as target in ClearCacheModal
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
r1walz committed Mar 27, 2024
1 parent b151b85 commit 5bc3bf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/containers/ClearCacheModal/ClearCacheModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5bc3bf7

Please sign in to comment.