fix: limit firewall log entries to the most recent 500 for performance optimization

This commit is contained in:
2025-12-04 22:28:41 -05:00
parent f845d20c05
commit 85f7da37d0

View File

@@ -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;