diff --git a/ui/api/kafka/actions.ts b/ui/api/kafka/actions.ts
index 68c5b80e7..23fcf7377 100644
--- a/ui/api/kafka/actions.ts
+++ b/ui/api/kafka/actions.ts
@@ -66,7 +66,6 @@ export async function getKafkaCluster(
try {
const res = await fetch(url, {
headers: await getHeaders(),
- cache: "reload",
});
if (res.status === 200) {
const rawData = await res.json();
diff --git a/ui/api/messages/actions.ts b/ui/api/messages/actions.ts
index 2fb1a2b57..2ea6e62a3 100644
--- a/ui/api/messages/actions.ts
+++ b/ui/api/messages/actions.ts
@@ -75,7 +75,6 @@ export async function getTopicMessages(
);
const res = await fetch(url, {
headers: await getHeaders(),
- cache: "no-store",
next: { tags: [`messages-${topicId}`] },
});
const rawData = await res.json();
diff --git a/ui/api/topics/actions.ts b/ui/api/topics/actions.ts
index 391309cc9..945c5779a 100644
--- a/ui/api/topics/actions.ts
+++ b/ui/api/topics/actions.ts
@@ -17,7 +17,6 @@ import {
import { filterUndefinedFromObj } from "@/utils/filterUndefinedFromObj";
import { logger } from "@/utils/logger";
import { getSession, setSession } from "@/utils/session";
-import { revalidateTag } from "next/cache";
const log = logger.child({ module: "topics-api" });
@@ -121,9 +120,6 @@ export async function createTopic(
log.debug({ url, rawData }, "createTopic response");
const response = TopicCreateResponseSchema.parse(rawData);
log.debug(response, "createTopic response parsed");
- if (validateOnly === false) {
- revalidateTag("topics");
- }
return response;
}
@@ -155,7 +151,6 @@ export async function updateTopic(
log.debug({ status: res.status }, "updateTopic response");
try {
if (res.status === 204) {
- revalidateTag(`topic-${topicId}`);
return true;
} else {
const rawData = await res.json();
@@ -181,7 +176,6 @@ export async function deleteTopic(
const success = res.status === 204;
if (success) {
log.debug({ url }, "deleteTopic success");
- revalidateTag("topics");
}
return success;
} catch (e) {
diff --git a/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@activeBreadcrumb/nodes/[nodeId]/NodeBreadcrumb.tsx b/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@activeBreadcrumb/nodes/[nodeId]/NodeBreadcrumb.tsx
index 9ee444c30..e3f8945b6 100644
--- a/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@activeBreadcrumb/nodes/[nodeId]/NodeBreadcrumb.tsx
+++ b/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@activeBreadcrumb/nodes/[nodeId]/NodeBreadcrumb.tsx
@@ -6,8 +6,6 @@ import { Skeleton } from "@patternfly/react-core";
import { notFound } from "next/navigation";
import { Suspense } from "react";
-export const fetchCache = "force-cache";
-
export async function NodeBreadcrumb({
params: { kafkaId, nodeId },
}: {
diff --git a/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@activeBreadcrumb/nodes/[nodeId]/configuration/page.tsx b/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@activeBreadcrumb/nodes/[nodeId]/configuration/page.tsx
index 04b3c5a3c..4b0583325 100644
--- a/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@activeBreadcrumb/nodes/[nodeId]/configuration/page.tsx
+++ b/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@activeBreadcrumb/nodes/[nodeId]/configuration/page.tsx
@@ -1,4 +1,3 @@
import { NodeBreadcrumb } from "@/app/[locale]/(authorized)/kafka/[kafkaId]/@activeBreadcrumb/nodes/[nodeId]/NodeBreadcrumb";
-export { fetchCache } from "@/app/[locale]/(authorized)/kafka/[kafkaId]/@activeBreadcrumb/nodes/[nodeId]/NodeBreadcrumb";
export default NodeBreadcrumb;
diff --git a/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@activeBreadcrumb/topics/[topicId]/TopicBreadcrumb.tsx b/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@activeBreadcrumb/topics/[topicId]/TopicBreadcrumb.tsx
index cf8a9cece..28df70810 100644
--- a/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@activeBreadcrumb/topics/[topicId]/TopicBreadcrumb.tsx
+++ b/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@activeBreadcrumb/topics/[topicId]/TopicBreadcrumb.tsx
@@ -3,8 +3,6 @@ import { KafkaTopicParams } from "@/app/[locale]/(authorized)/kafka/[kafkaId]/to
import { BreadcrumbLink } from "@/components/Navigation/BreadcrumbLink";
import { BreadcrumbItem } from "@/libs/patternfly/react-core";
-export const fetchCache = "force-cache";
-
export async function TopicBreadcrumb({
params: { kafkaId, topicId },
}: {
diff --git a/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@activeBreadcrumb/topics/[topicId]/configuration/page.tsx b/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@activeBreadcrumb/topics/[topicId]/configuration/page.tsx
index 7c2988070..b3458fcd0 100644
--- a/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@activeBreadcrumb/topics/[topicId]/configuration/page.tsx
+++ b/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@activeBreadcrumb/topics/[topicId]/configuration/page.tsx
@@ -1,4 +1,3 @@
import { TopicBreadcrumb } from "@/app/[locale]/(authorized)/kafka/[kafkaId]/@activeBreadcrumb/topics/[topicId]/TopicBreadcrumb";
-export { fetchCache } from "@/app/[locale]/(authorized)/kafka/[kafkaId]/@activeBreadcrumb/topics/[topicId]/TopicBreadcrumb";
export default TopicBreadcrumb;
diff --git a/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@activeBreadcrumb/topics/[topicId]/consumer-groups/page.tsx b/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@activeBreadcrumb/topics/[topicId]/consumer-groups/page.tsx
index 7c2988070..b3458fcd0 100644
--- a/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@activeBreadcrumb/topics/[topicId]/consumer-groups/page.tsx
+++ b/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@activeBreadcrumb/topics/[topicId]/consumer-groups/page.tsx
@@ -1,4 +1,3 @@
import { TopicBreadcrumb } from "@/app/[locale]/(authorized)/kafka/[kafkaId]/@activeBreadcrumb/topics/[topicId]/TopicBreadcrumb";
-export { fetchCache } from "@/app/[locale]/(authorized)/kafka/[kafkaId]/@activeBreadcrumb/topics/[topicId]/TopicBreadcrumb";
export default TopicBreadcrumb;
diff --git a/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@activeBreadcrumb/topics/[topicId]/messages/page.tsx b/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@activeBreadcrumb/topics/[topicId]/messages/page.tsx
index 7c2988070..b3458fcd0 100644
--- a/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@activeBreadcrumb/topics/[topicId]/messages/page.tsx
+++ b/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@activeBreadcrumb/topics/[topicId]/messages/page.tsx
@@ -1,4 +1,3 @@
import { TopicBreadcrumb } from "@/app/[locale]/(authorized)/kafka/[kafkaId]/@activeBreadcrumb/topics/[topicId]/TopicBreadcrumb";
-export { fetchCache } from "@/app/[locale]/(authorized)/kafka/[kafkaId]/@activeBreadcrumb/topics/[topicId]/TopicBreadcrumb";
export default TopicBreadcrumb;
diff --git a/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@activeBreadcrumb/topics/[topicId]/partitions/page.tsx b/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@activeBreadcrumb/topics/[topicId]/partitions/page.tsx
index 7c2988070..b3458fcd0 100644
--- a/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@activeBreadcrumb/topics/[topicId]/partitions/page.tsx
+++ b/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@activeBreadcrumb/topics/[topicId]/partitions/page.tsx
@@ -1,4 +1,3 @@
import { TopicBreadcrumb } from "@/app/[locale]/(authorized)/kafka/[kafkaId]/@activeBreadcrumb/topics/[topicId]/TopicBreadcrumb";
-export { fetchCache } from "@/app/[locale]/(authorized)/kafka/[kafkaId]/@activeBreadcrumb/topics/[topicId]/TopicBreadcrumb";
export default TopicBreadcrumb;
diff --git a/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@activeBreadcrumb/topics/[topicId]/schema-registry/page.tsx b/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@activeBreadcrumb/topics/[topicId]/schema-registry/page.tsx
index 7c2988070..b3458fcd0 100644
--- a/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@activeBreadcrumb/topics/[topicId]/schema-registry/page.tsx
+++ b/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@activeBreadcrumb/topics/[topicId]/schema-registry/page.tsx
@@ -1,4 +1,3 @@
import { TopicBreadcrumb } from "@/app/[locale]/(authorized)/kafka/[kafkaId]/@activeBreadcrumb/topics/[topicId]/TopicBreadcrumb";
-export { fetchCache } from "@/app/[locale]/(authorized)/kafka/[kafkaId]/@activeBreadcrumb/topics/[topicId]/TopicBreadcrumb";
export default TopicBreadcrumb;
diff --git a/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@header/KafkaHeader.tsx b/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@header/KafkaHeader.tsx
index 9f906d242..7238100f2 100644
--- a/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@header/KafkaHeader.tsx
+++ b/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@header/KafkaHeader.tsx
@@ -6,8 +6,6 @@ import { Skeleton } from "@patternfly/react-core";
import { notFound } from "next/navigation";
import { Suspense } from "react";
-export const fetchCache = "force-cache";
-
export function KafkaHeader({ params: { kafkaId } }: { params: KafkaParams }) {
return (
} />}>
diff --git a/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@header/consumer-groups/[groupId]/page.tsx b/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@header/consumer-groups/[groupId]/page.tsx
index 58e581c5d..1bd4d1fcc 100644
--- a/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@header/consumer-groups/[groupId]/page.tsx
+++ b/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@header/consumer-groups/[groupId]/page.tsx
@@ -5,8 +5,6 @@ import { Suspense } from "react";
import { useTranslations } from "next-intl";
import { ConsumerGroupActionButton } from "./ConsumerGroupActionButton";
-export const fetchCache = "force-cache";
-
export default function Page({
params: { kafkaId, groupId },
}: {
diff --git a/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@header/nodes/[nodeId]/NodeHeader.tsx b/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@header/nodes/[nodeId]/NodeHeader.tsx
index e6ad903d5..cfcbe6165 100644
--- a/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@header/nodes/[nodeId]/NodeHeader.tsx
+++ b/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@header/nodes/[nodeId]/NodeHeader.tsx
@@ -5,8 +5,6 @@ import { Skeleton } from "@patternfly/react-core";
import { notFound } from "next/navigation";
import { Suspense } from "react";
-export const fetchCache = "force-cache";
-
export async function NodeHeader({
params: { kafkaId, nodeId },
}: {
diff --git a/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@header/nodes/[nodeId]/configuration/page.tsx b/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@header/nodes/[nodeId]/configuration/page.tsx
index 09dfc0918..c1e74b42e 100644
--- a/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@header/nodes/[nodeId]/configuration/page.tsx
+++ b/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@header/nodes/[nodeId]/configuration/page.tsx
@@ -1,4 +1,3 @@
import { NodeHeader } from "@/app/[locale]/(authorized)/kafka/[kafkaId]/@header/nodes/[nodeId]/NodeHeader";
-export { fetchCache } from "@/app/[locale]/(authorized)/kafka/[kafkaId]/@header/nodes/[nodeId]/NodeHeader";
export default NodeHeader;
diff --git a/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@header/overview/page.tsx b/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@header/overview/page.tsx
index 2dce3a70e..9495a14c2 100644
--- a/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@header/overview/page.tsx
+++ b/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@header/overview/page.tsx
@@ -8,8 +8,6 @@ import { Skeleton } from "@patternfly/react-core";
import { notFound } from "next/navigation";
import { Suspense } from "react";
-export const fetchCache = "force-cache";
-
export default function Header({
params: { kafkaId },
}: {
diff --git a/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@header/schema-registry/page.tsx b/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@header/schema-registry/page.tsx
index cf868ac5c..a35fb2b8f 100644
--- a/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@header/schema-registry/page.tsx
+++ b/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@header/schema-registry/page.tsx
@@ -1,4 +1,3 @@
import { KafkaHeader } from "@/app/[locale]/(authorized)/kafka/[kafkaId]/@header/KafkaHeader";
-export { fetchCache } from "@/app/[locale]/(authorized)/kafka/[kafkaId]/@header/KafkaHeader";
export default KafkaHeader;
diff --git a/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@header/topics/[topicId]/TopicHeader.tsx b/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@header/topics/[topicId]/TopicHeader.tsx
index 74d7d6c0a..ce7796acc 100644
--- a/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@header/topics/[topicId]/TopicHeader.tsx
+++ b/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@header/topics/[topicId]/TopicHeader.tsx
@@ -16,19 +16,22 @@ import { Skeleton } from "@patternfly/react-core";
import { notFound } from "next/navigation";
import { ReactNode, Suspense } from "react";
-export const fetchCache = "force-cache";
+export type TopicHeaderProps = {
+ params: KafkaTopicParams;
+ showRefresh?: boolean;
+};
export function TopicHeader({
params: { kafkaId, topicId },
-}: {
- params: KafkaTopicParams;
-}) {
+ showRefresh,
+}: TopicHeaderProps) {
const portal =
;
return (
}
+ showRefresh={showRefresh}
navigation={