Skip to content

Commit

Permalink
Simple entity caching for the recent drafts view. Commit ready for me…
Browse files Browse the repository at this point in the history
…rge.

 - Legacy-Id: 19480
  • Loading branch information
rjsparks committed Oct 27, 2021
1 parent 3a553c4 commit c0cbb79
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ietf/templates/doc/recent_drafts.html
@@ -1,6 +1,7 @@
{% extends "base.html" %}
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin static %}
{% load cache %}

{% block pagehead %}
<link rel="stylesheet" href="{% static "jquery.tablesorter/css/theme.bootstrap.min.css" %}">
Expand All @@ -9,6 +10,7 @@
{% block title %}Internet-Drafts submitted during the last {{days|default:7}} days{% endblock %}

{% block content %}
{% cache 1800 recentdrafts days using="slowpages" %}
{% origin %}
<h1>
Internet-Drafts submitted during the last {{days|default:7}} days
Expand All @@ -18,7 +20,7 @@ <h1>
</h1>

{% include "doc/search/search_results.html" %}

{% endcache %}
{% endblock %}

{% block js %}
Expand Down

0 comments on commit c0cbb79

Please sign in to comment.