You probably already found a solution for your problem, but my two cents on the subject:
As far as I can see, it's not possible to change the settings in the umbracoSettings.config file from the API, the only acces I can find is in businesslogic.dll where you can find umbraco.UmbracoSettings which have properties for all the settings in the file, but none of these properties has setters.
umbracoSettings.config is an ordinary xml-config file though so you could try changing the value using ordinary .net xml file manipulation code, and see if the umbraco-runtime picks up changes to the file dynamically (ie. without restarting the website in IIS).
Change umbracoSettings with API ?
Hi
I have a large import proces in my site and it takes long to publish items because of the updating of disk cache.
I want to change this setting before the import starts and change it back after it finishes : ContinouslyUpdateXmlDiskCache
Dave
Hi Dawoe,
You probably already found a solution for your problem, but my two cents on the subject:
As far as I can see, it's not possible to change the settings in the umbracoSettings.config file from the API, the only acces I can find is in businesslogic.dll where you can find umbraco.UmbracoSettings which have properties for all the settings in the file, but none of these properties has setters.
umbracoSettings.config is an ordinary xml-config file though so you could try changing the value using ordinary .net xml file manipulation code, and see if the umbraco-runtime picks up changes to the file dynamically (ie. without restarting the website in IIS).
Regards
Jesper Hauge
Jesper, I am looking into this too. I would suggest that the only way it could pick up changes to config files is by restarted thing IIS.
is working on a reply...