diff options
author | Dan McGee <dan@archlinux.org> | 2012-11-27 15:48:01 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-11-27 15:48:01 +0100 |
commit | eea25558c766d5f3a32879d16e579d051906cbf3 (patch) | |
tree | c181d2ee27722ea1afb74990dd400202f9eeb5ec /templates | |
parent | a732d3cebcb8ff3170502b13d01ba90ac8efe26f (diff) | |
download | archweb-eea25558c766d5f3a32879d16e579d051906cbf3.tar.gz archweb-eea25558c766d5f3a32879d16e579d051906cbf3.tar.xz |
Don't cache package properties as aggressively
For package signatures, it turns out it is way cheaper to just parse the
signature again rather than going though all the decorator and
cache_function_key business. This speeds up the mismatched signatures
report significantly once this is removed.
For base_package, given that we only call it once from our package
details template, it makes little sense to cache the result.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/packages/details.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/packages/details.html b/templates/packages/details.html index aa07355..0a47217 100644 --- a/templates/packages/details.html +++ b/templates/packages/details.html @@ -103,12 +103,12 @@ {% else %} <tr> <th>Base Package:</th> - {% if pkg.base_package %} - <td>{% pkg_details_link pkg.base_package %}</td> + {% with pkg.base_package as base %}{% if base %} + <td>{% pkg_details_link base %}</td> {% else %} <td><a href="../{{ pkg.pkgbase }}/" title="Split package details for {{ pkg.pkgbase }}">{{ pkg.pkgbase }}</a></td> - {% endif %} + {% endif %}{% endwith %} </tr> {% endifequal %} <tr> |