Skip to content
Snippets Groups Projects
Commit af690ea1 authored by Johannes Hörmann's avatar Johannes Hörmann
Browse files

datacaching: config: parse json

parent 15aac043
No related branches found
No related tags found
No related merge requests found
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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment