Cache navbar for an hour
This commit is contained in:
parent
430808d7fa
commit
00c6e91c63
|
@ -3,10 +3,10 @@
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||||
|
|
||||||
{% block script %}
|
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% load cache %}
|
{% load cache %}
|
||||||
|
|
||||||
|
{% block script %}
|
||||||
{% cache 3600 sass %}
|
{% cache 3600 sass %}
|
||||||
<link rel="shortcut icon" href="{% static 'favicon.ico' %}">
|
<link rel="shortcut icon" href="{% static 'favicon.ico' %}">
|
||||||
{% load compress %}
|
{% load compress %}
|
||||||
|
@ -20,6 +20,8 @@
|
||||||
<title>{% block title %}Title{% endblock %}</title>
|
<title>{% block title %}Title{% endblock %}</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
|
{% cache 3600 navbar %}
|
||||||
<nav class="navbar navbar-expand-md navbar-dark bg-secondary mb-2">
|
<nav class="navbar navbar-expand-md navbar-dark bg-secondary mb-2">
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<a class="navbar-brand" href="/">Home</a>
|
<a class="navbar-brand" href="/">Home</a>
|
||||||
|
@ -53,6 +55,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
{% endcache %}
|
||||||
|
|
||||||
{% block body %}{% endblock %}
|
{% block body %}{% endblock %}
|
||||||
</body>
|
</body>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user