diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index fce5fa3c2..99265a548 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -1,9 +1,10 @@ -## 5.1.2 +## 5.1.3 * Changed resolv.conf handling format to make it compatible with alpine linux see [#627][5_1_0_1][1]. * Refactoring Linux amd64 static build to work on Github Actions * Creating the docs for config v3 * Fixing Hostname Entry Update API * Fixing intermittent unit test +* MutableConfigFileDAO: Caching queries [5_1_0_1]: https://github.com/mageddo/dns-proxy-server/issues/627 diff --git a/gradle.properties b/gradle.properties index ee85810fd..a073ae701 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1 +1 @@ -version=5.1.2-snapshot +version=5.1.3-snapshot diff --git a/src/main/java/com/mageddo/dnsproxyserver/config/dataformat/v3/file/MutableConfigDAOFile.java b/src/main/java/com/mageddo/dnsproxyserver/config/dataformat/v3/file/MutableConfigDAOFile.java index a655595b0..056b1b2e2 100644 --- a/src/main/java/com/mageddo/dnsproxyserver/config/dataformat/v3/file/MutableConfigDAOFile.java +++ b/src/main/java/com/mageddo/dnsproxyserver/config/dataformat/v3/file/MutableConfigDAOFile.java @@ -39,9 +39,13 @@ public Config find() { .find(); } + Config findCached() { + return Configs.getInstance(); + } + @Override public Env findActiveEnv() { - final var config = this.find(); + final var config = this.findCached(); return findEnv(config.getActiveEnv(), config); }