summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-06-20 14:11:23 -0500
committerDan McGee <dan@archlinux.org>2013-06-20 14:11:23 -0500
commit9e4a0939145505e7f606ee8b66ea1acd092abb85 (patch)
tree0ad8470afe66d1da6434d8e97f0fce468bce33d3
parent0cac18ea4f3e56d1b7d1bdcb6729e22cbf3f5a44 (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>
-rw-r--r--mirrors/utils.py2
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]