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>
This commit is contained in:
parent
0cac18ea4f
commit
9e4a093914
@ -21,7 +21,7 @@ def dictfetchall(cursor):
|
|||||||
for row in cursor.fetchall()
|
for row in cursor.fetchall()
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@cache_function(178)
|
||||||
def status_data(cutoff_time, mirror_id=None):
|
def status_data(cutoff_time, mirror_id=None):
|
||||||
if mirror_id is not None:
|
if mirror_id is not None:
|
||||||
params = [cutoff_time, mirror_id]
|
params = [cutoff_time, mirror_id]
|
||||||
|
Loading…
Reference in New Issue
Block a user