pages/online: add cache, resulting in 20x performance boost

(for an example server with 2k players)
This commit is contained in:
slawkens
2025-07-31 13:28:46 +02:00
parent 0efe47ce71
commit c836308601
3 changed files with 98 additions and 80 deletions

View File

@@ -1247,6 +1247,14 @@ Sent by MyAAC,<br/>
'type' => 'section',
'title' => 'Online Page'
],
'online_cache_ttl' => [
'name' => 'Online Cache TTL (in minutes)',
'type' => 'number',
'min' => 0,
'desc' => 'How often to update online list from database in minutes. Too low may slow down your website.' . PHP_EOL .
'0 to disable.',
'default' => 15,
],
'online_record' => [
'name' => 'Display Players Record',
'type' => 'boolean',