Merged in [19299] from rjsparks@nostrum.com:
Change the caching model for the nonwg list page.
- Legacy-Id: 19322
Note: SVN reference [19299] has been migrated to Git commit fe5cfbd11d
This commit is contained in:
commit
36369f816e
|
@ -3,7 +3,6 @@
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from django.shortcuts import render
|
from django.shortcuts import render
|
||||||
from django.views.decorators.cache import cache_page
|
|
||||||
|
|
||||||
import debug # pyflakes:ignore
|
import debug # pyflakes:ignore
|
||||||
|
|
||||||
|
@ -15,9 +14,6 @@ def groups(request):
|
||||||
|
|
||||||
return render(request, "mailinglists/group_archives.html", { "groups": groups } )
|
return render(request, "mailinglists/group_archives.html", { "groups": groups } )
|
||||||
|
|
||||||
# we run the import_mailman_listinfo command via cron once per hour; we can
|
|
||||||
# safely cache this for some time.
|
|
||||||
@cache_page(15*60)
|
|
||||||
def nonwg(request):
|
def nonwg(request):
|
||||||
groups = Group.objects.filter(type__features__acts_like_wg=True).exclude(state__in=['bof', 'conclude']).order_by("acronym")
|
groups = Group.objects.filter(type__features__acts_like_wg=True).exclude(state__in=['bof', 'conclude']).order_by("acronym")
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,14 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{# Copyright The IETF Trust 2015, All Rights Reserved #}
|
{# Copyright The IETF Trust 2015, All Rights Reserved #}
|
||||||
{% load origin %}
|
{% load origin %}
|
||||||
|
{% load cache %}
|
||||||
{% block title %}Non-Working Group email lists{% endblock %}
|
{% block title %}Non-Working Group email lists{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% origin %}
|
{% origin %}
|
||||||
<h1>Non-Working Group email lists</h1>
|
<h1>Non-Working Group email lists</h1>
|
||||||
|
|
||||||
|
{% cache 900 nonwglisttable %}
|
||||||
<table class="table table-condensed table-striped">
|
<table class="table table-condensed table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -24,4 +25,5 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
{% endcache %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in a new issue