diff --git a/apps/dokploy/components/dashboard/requests/show-requests.tsx b/apps/dokploy/components/dashboard/requests/show-requests.tsx
index ab602f463..974d4fb3f 100644
--- a/apps/dokploy/components/dashboard/requests/show-requests.tsx
+++ b/apps/dokploy/components/dashboard/requests/show-requests.tsx
@@ -59,6 +59,25 @@ export const ShowRequests = () => {
to: undefined,
});
+ // Check if logs exist to determine if traefik has been reloaded
+ // Only fetch when active to minimize network calls
+ const { data: statsLogsCheck } = api.settings.readStatsLogs.useQuery(
+ {
+ page: {
+ pageIndex: 0,
+ pageSize: 1,
+ },
+ },
+ {
+ enabled: !!isActive,
+ refetchInterval: 5000, // Check every 5 seconds when active
+ },
+ );
+
+ // Determine if warning should be shown
+ // Show warning only if active but no logs exist yet
+ const shouldShowWarning = isActive && (statsLogsCheck?.totalCount ?? 0) === 0;
+
useEffect(() => {
if (logCleanupStatus) {
setCronExpression(logCleanupStatus.cronExpression || "0 0 * * *");
@@ -79,16 +98,18 @@ export const ShowRequests = () => {
See all the incoming requests that pass trough Traefik
-
- When you activate, you need to reload traefik to apply the
- changes, you can reload traefik in{" "}
-
- Settings
-
-
+ {shouldShowWarning && (
+
+ When you activate, you need to reload traefik to apply the
+ changes, you can reload traefik in{" "}
+
+ Settings
+
+
+ )}