diff options
author | Dan McGee <dan@archlinux.org> | 2012-01-05 13:03:00 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-01-05 13:03:00 -0600 |
commit | 6b16b9487a95118a6109a2c5119d430dc1192e80 (patch) | |
tree | a6ad637efb2cfd04bde7f241f91c693311432fb9 /public | |
parent | 7b7dcfaa7c1b10d4f595a68e4136f30162930011 (diff) |
Adjust page and content caching lengths and decorators
Remove never_cache from many places now that we don't actually need it
since we aren't caching by default. Adjust our cache_function decorator
times be shorter values, and also randomize them a bit to make cache
invalidations not all line up.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'public')
-rw-r--r-- | public/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public/utils.py b/public/utils.py index 6566b8c4..a40c9b53 100644 --- a/public/utils.py +++ b/public/utils.py @@ -49,7 +49,7 @@ class RecentUpdate(object): if package.arch not in arches and not arches.add(package.arch): yield PackageStandin(package) -@cache_function(300) +@cache_function(62) def get_recent_updates(number=15): # 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 |