diff --git a/packages/node_modules/@node-red/runtime/lib/storage/localfilesystem/settings.js b/packages/node_modules/@node-red/runtime/lib/storage/localfilesystem/settings.js index f7c907f2a..d6484b1a6 100644 --- a/packages/node_modules/@node-red/runtime/lib/storage/localfilesystem/settings.js +++ b/packages/node_modules/@node-red/runtime/lib/storage/localfilesystem/settings.js @@ -88,11 +88,13 @@ async function readSettings() { // Read the 'runtime' settings file first const runtimeFilename = getSettingsFilename("runtime"); const result = await util.readFile(runtimeFilename,runtimeFilename+".backup",{}); + settingsCache["runtime"] = JSON.stringify(result, null ,4); const readPromises = []; // Read the other settings files and add them into the runtime settings configSections.forEach(key => { const sectionFilename = getSettingsFilename(key); readPromises.push(util.readFile(sectionFilename,sectionFilename+".backup",{}).then(sectionData => { + settingsCache[key] = JSON.stringify(sectionData, null ,4); if (Object.keys(sectionData).length > 0) { result[key] = sectionData; }