From 85f7da37d0a6fe500cb8cc1fea0d7095ecf8099f Mon Sep 17 00:00:00 2001 From: "Joseph.Rawlings" Date: Thu, 4 Dec 2025 22:28:41 -0500 Subject: [PATCH] fix: limit firewall log entries to the most recent 500 for performance optimization --- extensions/Servers/Proxmox/Livewire/Firewall.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/extensions/Servers/Proxmox/Livewire/Firewall.php b/extensions/Servers/Proxmox/Livewire/Firewall.php index 9a6c9d3d4..5665d8459 100644 --- a/extensions/Servers/Proxmox/Livewire/Firewall.php +++ b/extensions/Servers/Proxmox/Livewire/Firewall.php @@ -1316,6 +1316,11 @@ class Firewall extends Component $this->firewallLogs = $this->parseFirewallLogs($allRawLogs); + // Only keep the most recent entries (limit to 500 for performance) + if (count($this->firewallLogs) > 500) { + $this->firewallLogs = array_slice($this->firewallLogs, 0, 500); + } + // Reset to page 1 when refreshing logs $this->currentPage = 1;