Cache repos for a minute
This commit is contained in:
parent
00c6e91c63
commit
90f27c5850
|
@ -1,7 +1,8 @@
|
||||||
{% extends "borg/base.html" %}
|
{% extends "borg/base.html" %}
|
||||||
|
{% load cache %}
|
||||||
|
{% load static %}
|
||||||
|
|
||||||
{% block title %}Borg Summary{% endblock %}
|
{% block title %}Borg Summary{% endblock %}
|
||||||
{% load static %}
|
|
||||||
{% block script %}
|
{% block script %}
|
||||||
{{block.super}}
|
{{block.super}}
|
||||||
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
||||||
|
@ -23,6 +24,7 @@
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
|
{% cache 60 repos %}
|
||||||
{% if repo_list %}
|
{% if repo_list %}
|
||||||
<div class="grid mx-auto d-flex justify-content-center flex-wrap">
|
<div class="grid mx-auto d-flex justify-content-center flex-wrap">
|
||||||
{% for repo in repo_list %}
|
{% for repo in repo_list %}
|
||||||
|
@ -82,5 +84,6 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{% endcache %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user