Changed to use doc.canonical_name instead of doc.name when computing the cache key for htmlized documents in order to trigger a new generation when a draft goes to RFC.

- Legacy-Id: 13170
This commit is contained in:
Henrik Levkowetz 2017-03-29 16:59:22 +00:00
parent 1fa17b4913
commit 1ef2450b6c

View file

@ -52,7 +52,7 @@
{% endcomment %}
{% with 1209600 as two_weeks %}
{% cache two_weeks htmlized doc.name doc.rev using="htmlized" %}
{% cache two_weeks htmlized doc.canonical_name doc.rev using="htmlized" %}
<div>
{{ doc.htmlized|default:"Generation of htmlized text failed"|safe }}
</div>