From da9a1ecbf826c29b7bceb17b9f2d5a7c5f648e3b Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 21 Jun 2010 00:51:39 -0500 Subject: Cache the recent updates list Signed-off-by: Dan McGee --- public/utils.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'public') diff --git a/public/utils.py b/public/utils.py index 88f073d..c92cb26 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 -- cgit v1.2.3-24-g4f1b