diff --git a/extensions/Servers/Proxmox/Livewire/Statistics.php b/extensions/Servers/Proxmox/Livewire/Statistics.php index 7842e2e52..6a84219a1 100644 --- a/extensions/Servers/Proxmox/Livewire/Statistics.php +++ b/extensions/Servers/Proxmox/Livewire/Statistics.php @@ -419,7 +419,10 @@ class Statistics extends Component $this->topPortsCurrentPage = 1; // Persist the computed analysis for a short period to speed up subsequent loads - Cache::put($cacheKey, $analysis, now()->addSeconds(30)); + // Cache duration is set to 25 seconds (slightly less than the 30s poll interval) + // This ensures fresh data is fetched on each poll cycle while still preventing + // duplicate requests within the same cycle + Cache::put($cacheKey, $analysis, now()->addSeconds(25)); // Reset retry count on successful load $this->networkAnalysisRetryCount = 0; diff --git a/extensions/Servers/Proxmox/views/components/layout.blade.php b/extensions/Servers/Proxmox/views/components/layout.blade.php index 6c417356e..5bae5e700 100644 --- a/extensions/Servers/Proxmox/views/components/layout.blade.php +++ b/extensions/Servers/Proxmox/views/components/layout.blade.php @@ -1229,98 +1229,87 @@
+ Streaming ยท Last updated {{ \Carbon\Carbon::parse($networkAnalysis['lastUpdated'])->diffForHumans() }} +
+