Enable template fragment caching on package details page
We can't cache most of the package actions links stuff because we look at the user there, but we can cache everything on the left and the content of the bottom boxes. Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
2dc0cafbb4
commit
45a14b3cbc
@ -1,4 +1,6 @@
|
||||
{% extends "base.html" %}
|
||||
{% load cache %}
|
||||
|
||||
{% block title %}Arch Linux - {{ pkg.pkgname }} {{ pkg.pkgver }}-{{ pkg.pkgrel }} - Package Details{% endblock %}
|
||||
{% block navbarclass %}anb-packages{% endblock %}
|
||||
|
||||
@ -63,6 +65,7 @@ <h4>Versions Elsewhere</h4>
|
||||
|
||||
</div><!-- #actionlist -->
|
||||
|
||||
{% cache 300 package-details-pkginfo pkg.id %}
|
||||
<table id="pkginfo">
|
||||
<tr>
|
||||
<th>Architecture:</th>
|
||||
@ -204,6 +207,8 @@ <h3 title="Complete list of files contained within this package">
|
||||
</div><!-- #pkgfiles -->
|
||||
|
||||
</div><!-- #metadata -->
|
||||
{% endcache %}
|
||||
|
||||
</div><!-- #pkgdetails -->
|
||||
|
||||
{% load cdn %}{% jquery %}
|
||||
|
Loading…
Reference in New Issue
Block a user