Hi,
I’m using version 11.4 of Umbraco. I added color picker to RTE, and I created a color map in the appsettings. The map can change if a user adds or removes a color in a list. Each time the list is changed, the appsettings update accordingly, but the changes are taken only if I restart the site. Is there a way to reload the appsettings without restarting the site?
Hi, thank you for your suggestion, but i am unable to apply that solution into Umbraco. In the forum I found another post referring to using custom appconfig, via this code:
Appsettings reload on change
Hi, I’m using version 11.4 of Umbraco. I added color picker to RTE, and I created a color map in the appsettings. The map can change if a user adds or removes a color in a list. Each time the list is changed, the appsettings update accordingly, but the changes are taken only if I restart the site. Is there a way to reload the appsettings without restarting the site?
Thanks!
I haven't tried this in Umbraco, but the article below shows how to do this in .Net core
https://www.coderschmoder.com/reload-changes-in-appsetting-json-without-website-restart/
Hi, thank you for your suggestion, but i am unable to apply that solution into Umbraco. In the forum I found another post referring to using custom appconfig, via this code:
.ConfigureAppConfiguration(config => { config.AddJsonFile("appsettingsOM.json", optional: true, reloadOnChange: true); })
It works, the RTE properties in appsettingsOM.json are loaded, but Umbraco ignore the reloadOnChange parameter.
Does anyone know why?
is working on a reply...