summaryrefslogtreecommitdiff
path: root/packages/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'packages/views.py')
-rw-r--r--packages/views.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/views.py b/packages/views.py
index ae31f150..20fdb393 100644
--- a/packages/views.py
+++ b/packages/views.py
@@ -20,7 +20,7 @@ import string
from main.models import Package, PackageFile
from main.models import Arch, Repo, Signoff
from main.models import MirrorUrl
-from main.utils import make_choice
+from main.utils import cache_function, make_choice
from packages.models import PackageGroup, PackageRelation
def opensearch(request):
@@ -85,6 +85,7 @@ def details(request, name='', repo='', arch=''):
return HttpResponseRedirect("/packages/?arch=%s&repo=%s&q=%s" % (
arch.lower(), repo.title(), name))
+@cache_function(300)
def get_group_information():
raw_groups = PackageGroup.objects.values_list(
'name', 'pkg__arch__name').order_by('name').annotate(