mirror of
https://github.com/slawkens/myaac.git
synced 2025-11-28 22:26:51 +01:00
pages/online: add cache, resulting in 20x performance boost
(for an example server with 2k players)
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user