summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-06-21 00:51:39 -0500
committerDan McGee <dan@archlinux.org>2010-06-21 00:51:39 -0500
commitda9a1ecbf826c29b7bceb17b9f2d5a7c5f648e3b (patch)
treead7ecd9a04309745287fd315efb50ac2f58742c3
parent8ba6ad8521f01e66e8712aa3894633844195ea9c (diff)
Cache the recent updates list
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--public/utils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/public/utils.py b/public/utils.py
index 88f073d0..c92cb264 100644
--- a/public/utils.py
+++ b/public/utils.py
@@ -1,5 +1,7 @@
from main.models import Arch, Repo, Package
+from main.utils import cache_function
+@cache_function(300)
def get_recent_updates():
# This is a bit of magic. We are going to show 15 on the front page, but we
# want to try and eliminate cross-architecture wasted space. Pull enough