Let's cache mail diagnosis with a duration similar to other checks...

This commit is contained in:
Alexandre Aubin 2020-04-19 01:30:22 +02:00
parent 7818eb3946
commit 8aced5b4ce

View file

@ -19,7 +19,7 @@ DEFAULT_DNS_BLACKLIST = "/usr/share/yunohost/other/dnsbl_list.yml"
class MailDiagnoser(Diagnoser): class MailDiagnoser(Diagnoser):
id_ = os.path.splitext(os.path.basename(__file__))[0].split("-")[1] id_ = os.path.splitext(os.path.basename(__file__))[0].split("-")[1]
cache_duration = 0 cache_duration = 600
dependencies = ["ip"] dependencies = ["ip"]
def run(self): def run(self):