Skip to content

Commit

Permalink
【1.1.15】Configuration cache optimization (#255)
Browse files Browse the repository at this point in the history
* conf cacahe optimization

* config update msg

---------

Co-authored-by: huangKai-2323 <[email protected]>
  • Loading branch information
v-kkhuang and v-kkhuang authored Aug 29, 2023
1 parent 7c9b100 commit 20ed025
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ public Message saveFullTree(HttpServletRequest req, @RequestBody JsonNode json)
engineVersion);
}
});
configurationService.clearAMCacheConf(username, creator, null, null);
} else {
configurationService.clearAMCacheConf(username, creator, engine, version);
}
Expand Down Expand Up @@ -502,7 +503,11 @@ public Message saveKeyValue(HttpServletRequest req, @RequestBody Map<String, Obj
configurationService.paramCheck(configKeyValue);
} catch (Exception e) {
if (force && e instanceof ConfigurationException) {
message.data("msg", e.getMessage());
message.data(
"msg",
"The update was successful, but the value verification failed. Please confirm if it has any impact:"
+ "(更新成功,但是值校验失败,请确认是否有影响)\n"
+ e.getMessage());
} else {
return Message.error(e.getMessage());
}
Expand Down

0 comments on commit 20ed025

Please sign in to comment.