CloudWatch: Fix high CPU load (#20579)

* Cache decrypted securejsondata
* Models: Add datasource cache tests

(cherry picked from commit 3fc5f4552a)
This commit is contained in:
Marcus Efraimsson
2019-11-25 10:55:48 +01:00
parent 092e51408a
commit 4c305bf2e2
5 changed files with 117 additions and 19 deletions
+1
View File
@@ -495,6 +495,7 @@ func TestDSRouteRule(t *testing.T) {
createAuthTest(m.DS_ES, AUTHTYPE_BASIC, AUTHCHECK_HEADER, true),
}
for _, test := range tests {
m.ClearDSDecryptionCache()
runDatasourceAuthTest(test)
}
})