diff --git a/process/DataCaching_lib/process.js b/process/DataCaching_lib/process.js index 8410bd42ceceb6760b8bc9645dfe445f23467a8a..db66f89ed47b14e41b745621421de2b554115e27 100644 --- a/process/DataCaching_lib/process.js +++ b/process/DataCaching_lib/process.js @@ -66,8 +66,14 @@ 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 (JSON.parse(project.getInstanceConfigValue("custom.dataCaching.client.forceDisable")) == true) - cachingEnabled = false; + else + { + try + { + if (JSON.parse(project.getInstanceConfigValue("custom.dataCaching.client.forceDisable")) == true) + cachingEnabled = false; + } catch (ex) {/* ignore */} + } if (!cachingEnabled) return pDataCallbackFunction.call(this, this.keepPerLanguage, this.locale);