diff options
author | Dan McGee <dan@archlinux.org> | 2010-06-21 07:51:39 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-06-21 07:51:39 +0200 |
commit | da9a1ecbf826c29b7bceb17b9f2d5a7c5f648e3b (patch) | |
tree | ad7ecd9a04309745287fd315efb50ac2f58742c3 | |
parent | 8ba6ad8521f01e66e8712aa3894633844195ea9c (diff) | |
download | archweb-da9a1ecbf826c29b7bceb17b9f2d5a7c5f648e3b.tar.gz archweb-da9a1ecbf826c29b7bceb17b9f2d5a7c5f648e3b.tar.xz |
Cache the recent updates list
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r-- | public/utils.py | 2 |
1 files changed, 2 insertions, 0 deletions
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 |