From af690ea1e19529b98c3f8718e03a3c5d679b7e68 Mon Sep 17 00:00:00 2001 From: Johannes Hoermann <j.hoermann@adito.de> Date: Fri, 31 May 2019 11:50:11 +0200 Subject: [PATCH] datacaching: config: parse json --- process/DataCaching_lib/process.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/process/DataCaching_lib/process.js b/process/DataCaching_lib/process.js index f77ae2ba0c..8410bd42ce 100644 --- a/process/DataCaching_lib/process.js +++ b/process/DataCaching_lib/process.js @@ -1,3 +1,4 @@ +import("system.logging"); import("system.vars"); import("system.project"); @@ -65,7 +66,7 @@ CachedData.prototype.load = function(pDataCallbackFunction) //currently it's not possible to cache the data within the serer-context, so instead the Data-function is called everytime if (this.runningOnServer) cachingEnabled = false; - else if (project.getInstanceConfigValue("custom.dataCaching.client.forceDisable") == true) + else if (JSON.parse(project.getInstanceConfigValue("custom.dataCaching.client.forceDisable")) == true) cachingEnabled = false; if (!cachingEnabled) -- GitLab