cache node info for longer

master
lza_menace 4 years ago
parent 674cd830b2
commit e23e0be800

@ -53,7 +53,7 @@ class Cache(object):
url = f'http://{dns}:18081/get_info' url = f'http://{dns}:18081/get_info'
r = r_get(url, timeout=6) r = r_get(url, timeout=6)
data = r.json() data = r.json()
self.store_data(key_name, 8, json_dumps(data)) self.store_data(key_name, 30, json_dumps(data))
return data return data
except: except:
return {'error': 'true'} return {'error': 'true'}

Loading…
Cancel
Save