mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-14 01:34:55 +02:00
pages/online: add cache, resulting in 20x performance boost
(for an example server with 2k players)
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
{% set onlineTTL = setting('core.online_cache_ttl') %}
|
||||
{% if onlineTTL > 0 and cache.enabled() %}
|
||||
<small>*Note: Online List is updated every {{ onlineTTL > 1 ? ' ' ~ onlineTTL : '' }} minute{{ onlineTTL > 1 ? 's' : '' }}.</small>
|
||||
<br/>
|
||||
{% endif %}
|
||||
|
||||
{# vocation statistics #}
|
||||
{% if setting('core.online_vocations') %}
|
||||
<br/>
|
||||
|
Reference in New Issue
Block a user