Skip to content
This repository was archived by the owner on Nov 26, 2018. It is now read-only.

Commit 3ccc9c3

Browse files
committed
Decrease scope of cache blocks
1 parent dff7c50 commit 3ccc9c3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

botbot/templates/launchpad/signup.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
{% extends "landing/base.html" %}
22
{% load cache channel_url %}
33
{% block content %}
4-
{% cache 600 "signup-featured-channels" %}
54
<section class="preview-box">
65
<h3>Featured channels</h3>
76
<ul class="channel-list">
7+
{% cache 600 "signup-featured-channels-list" %}
88
{% for channel in featured_channels %}
99
<li><a href="{% channel_url channel 'log_current' %}">{{ channel.name }}</a></li>
1010
{% endfor %}
11+
{% endcache %}
1112
</ul>
1213

1314
<p><strong>New to IRC?</strong> Check out our <a href="{% url "irc-guide" %}">quick start guide</a> or learn how to <a href="{% url "how-to" %}">setup your own private channel</a>.</p>
1415
</section>
15-
{% endcache %}
1616

1717
<div id="Glob"></div>
1818

@@ -51,13 +51,13 @@ <h2>Word Up!</h2>
5151
Don't see your channel listed?<br><span class="op">If you're a channel op:</span><br><a class="request-here" href="{% url 'request_channel' %}">Request it here</a>
5252
</p>
5353

54-
{% cache 600 "signup-public-channels" %}
5554
<ul class="channel-list-compact">
55+
{% cache 600 "signup-public-channels" %}
5656
{% for channel in public_not_featured_channels %}
5757
<li><a href="{% channel_url channel 'log_current' %}">{{ channel.name }}</a></li>
5858
{% endfor %}
59-
</ul>
6059
{% endcache %}
60+
</ul>
6161
{% endblock content %}
6262
{% block tail %}
6363
<script>

0 commit comments

Comments
 (0)