Cache dota2 api requests
This commit is contained in:
1 parent
8a2dc22136
commit
1ae9be6a79
4 files changed
+7
-3
No files matched your search
@@ -103,7 +103,8 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block pagescripts %}
|
||||
<script src="http://code.highcharts.com/highcharts.js"></script>
|
||||
{#<script src="http://code.highcharts.com/highcharts.js"></script>#}
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/highcharts/4.0.3/highcharts.js"></script>
|
||||
<script>
|
||||
$('#winrate_modal').on({
|
||||
'uk.modal.show': function(){
|
||||
|
||||
@@ -36,12 +36,12 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block pagescripts %}
|
||||
{% set teamspeak_data = get_teamspeak_window() %}
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/highcharts/3.0.7/highcharts.js"></script>
|
||||
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/highcharts/3.0.7/modules/map.src.js"></script>
|
||||
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/highcharts/3.0.7/modules/data.src.js"></script>
|
||||
<script type="text/javascript" src="{{ url_for('static', filename='js/world-map-shapes.js') }}"></script>
|
||||
{% cache 60*5 %}
|
||||
{% set teamspeak_data = get_teamspeak_window() %}
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('#unique_clients').html("{{ ts3_active_clients(teamspeak_data) }}");
|
||||
|
||||
Reference in new issue
Block a user