From 9e4a0939145505e7f606ee8b66ea1acd092abb85 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 20 Jun 2013 14:11:23 -0500 Subject: 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 --- mirrors/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] -- cgit v1.2.3-55-g3dc8