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

do not throw error if custom property doesn't exist.

parent e8a51864
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
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