mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
More sensible cache_duration for diagnosis categories
This commit is contained in:
parent
485de92b50
commit
749ca54a34
7 changed files with 7 additions and 7 deletions
|
@ -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):
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue