From 0945c959bf3369956a99ac448832b9550000a5a0 Mon Sep 17 00:00:00 2001 From: "Zaiming (Stone) Shi" Date: Thu, 21 Apr 2022 12:37:52 +0200 Subject: [PATCH] chore(emqx_dashboard): update hocon desc cache APIs --- apps/emqx_dashboard/src/emqx_dashboard.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/emqx_dashboard/src/emqx_dashboard.erl b/apps/emqx_dashboard/src/emqx_dashboard.erl index 7f7a029a7..0c4fae5fe 100644 --- a/apps/emqx_dashboard/src/emqx_dashboard.erl +++ b/apps/emqx_dashboard/src/emqx_dashboard.erl @@ -129,13 +129,13 @@ get_i18n() -> application:get_env(emqx_dashboard, i18n). init_i18n(File, Lang) -> - Cache = hocon_schema:new_cache(File), + Cache = hocon_schema:new_desc_cache(File), application:set_env(emqx_dashboard, i18n, #{lang => atom_to_binary(Lang), cache => Cache}). clear_i18n() -> case application:get_env(emqx_dashboard, i18n) of {ok, #{cache := Cache}} -> - hocon_schema:delete_cache(Cache), + hocon_schema:delete_desc_cache(Cache), application:unset_env(emqx_dashboard, i18n); undefined -> ok