fix: limit firewall log entries to the most recent 500 for performance optimization
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user