summaryrefslogtreecommitdiff
path: root/mirrors
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-04-14 13:21:16 -0500
committerDan McGee <dan@archlinux.org>2013-04-14 13:21:20 -0500
commitf357a39a49a8edc713d512976a0be2a2a8ac5c4f (patch)
tree03a16a9fcc0390a53514e89551b195276fdd67db /mirrors
parent213aa3a2fab6f3a56be348a067c132f568efbaff (diff)
Remove cache_function decorator from a few spots
The benefit of these storage operations might be outweighed by the cost, especially given how infrequently these functions are called. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'mirrors')
-rw-r--r--mirrors/utils.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/mirrors/utils.py b/mirrors/utils.py
index eb1211f1..5a8bbf5d 100644
--- a/mirrors/utils.py
+++ b/mirrors/utils.py
@@ -111,7 +111,6 @@ def annotate_url(url, url_data):
url.score = (hours + url.duration_avg + stddev) / divisor
-@cache_function(123)
def get_mirror_statuses(cutoff=DEFAULT_CUTOFF, mirror_id=None):
cutoff_time = now() - cutoff
@@ -155,7 +154,6 @@ def get_mirror_statuses(cutoff=DEFAULT_CUTOFF, mirror_id=None):
}
-@cache_function(117)
def get_mirror_errors(cutoff=DEFAULT_CUTOFF, mirror_id=None):
cutoff_time = now() - cutoff
errors = MirrorLog.objects.filter(