Skip to content

Commit 0bb60c3

Browse files
authored
MutableConfigDAO: Caching queries (#660)
1 parent 6e5d6ad commit 0bb60c3

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

RELEASE-NOTES.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
## 5.1.2
1+
## 5.1.3
22
* Changed resolv.conf handling format to make it compatible with alpine linux see [#627][5_1_0_1][1].
33
* Refactoring Linux amd64 static build to work on Github Actions
44
* Creating the docs for config v3
55
* Fixing Hostname Entry Update API
66
* Fixing intermittent unit test
7+
* MutableConfigFileDAO: Caching queries
78

89
[5_1_0_1]: https://github.com/mageddo/dns-proxy-server/issues/627
910

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version=5.1.2-snapshot
1+
version=5.1.3-snapshot

src/main/java/com/mageddo/dnsproxyserver/config/dataformat/v3/file/MutableConfigDAOFile.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,13 @@ public Config find() {
3939
.find();
4040
}
4141

42+
Config findCached() {
43+
return Configs.getInstance();
44+
}
45+
4246
@Override
4347
public Env findActiveEnv() {
44-
final var config = this.find();
48+
final var config = this.findCached();
4549
return findEnv(config.getActiveEnv(), config);
4650
}
4751

0 commit comments

Comments
 (0)