do not cache history requests

This commit is contained in:
Alexander Zobnin
2020-06-01 12:50:22 +03:00
parent 2c10fdf996
commit ee2cc49ba1
4 changed files with 14 additions and 4 deletions

View File

@@ -131,7 +131,7 @@ func newZabbixDatasource(dsInfo *backend.DataSourceInstanceSettings) (*ZabbixDat
url: zabbixURL,
dsInfo: dsInfo,
Settings: zabbixSettings,
queryCache: NewCache(10*time.Minute, 10*time.Minute),
queryCache: NewCache(zabbixSettings.CacheTTL, 10*time.Minute),
httpClient: &http.Client{
Transport: &http.Transport{
TLSClientConfig: &tls.Config{