More sensible cache_duration for diagnosis categories

This commit is contained in:
Alexandre Aubin 2020-04-18 02:53:15 +02:00
parent 485de92b50
commit 749ca54a34
7 changed files with 7 additions and 7 deletions

View file

@ -11,7 +11,7 @@ from yunohost.utils.packages import ynh_packages_version
class BaseSystemDiagnoser(Diagnoser):
id_ = os.path.splitext(os.path.basename(__file__))[0].split("-")[1]
cache_duration = 3600 * 24
cache_duration = 600
dependencies = []
def run(self):

View file

@ -13,7 +13,7 @@ from yunohost.utils.network import get_network_interfaces
class IPDiagnoser(Diagnoser):
id_ = os.path.splitext(os.path.basename(__file__))[0].split("-")[1]
cache_duration = 60
cache_duration = 600
dependencies = []
def run(self):

View file

@ -12,7 +12,7 @@ from yunohost.domain import domain_list, _build_dns_conf, _get_maindomain
class DNSRecordsDiagnoser(Diagnoser):
id_ = os.path.splitext(os.path.basename(__file__))[0].split("-")[1]
cache_duration = 3600 * 24
cache_duration = 600
dependencies = ["ip"]
def run(self):

View file

@ -9,7 +9,7 @@ from yunohost.service import _get_services
class PortsDiagnoser(Diagnoser):
id_ = os.path.splitext(os.path.basename(__file__))[0].split("-")[1]
cache_duration = 3600
cache_duration = 600
dependencies = ["ip", "dnsrecords"]
def run(self):

View file

@ -16,7 +16,7 @@ DIAGNOSIS_SERVER = "diagnosis.yunohost.org"
class WebDiagnoser(Diagnoser):
id_ = os.path.splitext(os.path.basename(__file__))[0].split("-")[1]
cache_duration = 3600
cache_duration = 600
dependencies = ["ip", "dnsrecords"]
def run(self):

View file

@ -8,7 +8,7 @@ from yunohost.diagnosis import Diagnoser
class MailDiagnoser(Diagnoser):
id_ = os.path.splitext(os.path.basename(__file__))[0].split("-")[1]
cache_duration = 3600
cache_duration = 600
dependencies = ["ip"]
def run(self):

View file

@ -7,7 +7,7 @@ from yunohost.diagnosis import Diagnoser
class SystemResourcesDiagnoser(Diagnoser):
id_ = os.path.splitext(os.path.basename(__file__))[0].split("-")[1]
cache_duration = 3600 * 24
cache_duration = 300
dependencies = []
def run(self):