diff options
author | Dan McGee <dan@archlinux.org> | 2013-06-20 14:11:23 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2013-06-20 14:11:23 -0500 |
commit | 9e4a0939145505e7f606ee8b66ea1acd092abb85 (patch) | |
tree | 0ad8470afe66d1da6434d8e97f0fce468bce33d3 /mirrors/utils.py | |
parent | 0cac18ea4f3e56d1b7d1bdcb6729e22cbf3f5a44 (diff) |
Re-enable caching for somewhat expensive mirror status query
This should be a small enough chunk of data that it isn't super
expensive to put into and pull out of memcached.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'mirrors/utils.py')
-rw-r--r-- | mirrors/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mirrors/utils.py b/mirrors/utils.py index e98b5c9f..bba8e36b 100644 --- a/mirrors/utils.py +++ b/mirrors/utils.py @@ -21,7 +21,7 @@ def dictfetchall(cursor): for row in cursor.fetchall() ] - +@cache_function(178) def status_data(cutoff_time, mirror_id=None): if mirror_id is not None: params = [cutoff_time, mirror_id] |