Skip to content

Commit a26a1cc

Browse files
authored
Merge branch 'develop' into feature/getVariableCategoryName
2 parents 7dbf7e2 + c03c911 commit a26a1cc

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/js/qmHelpers.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,14 +194,18 @@ var qm = {
194194
}
195195
return qmApiClient;
196196
},
197+
justUseBuiltInHttpCache: true, // Redundant and produces unexpected results
197198
cacheSet: function(params, data, functionName){
198-
if(!qm.api.cache[functionName]){
199-
qm.api.cache[functionName] = {};
200-
}
199+
if(!qm.api.cache[functionName]){qm.api.cache[functionName] = {};}
201200
var key = qm.api.getCacheName(params);
202-
qm.api.cache[functionName][key] = data;
201+
if(!qm.api.justUseBuiltInHttpCache){ // Redundant and produces unexpected results
202+
qm.api.cache[functionName][key] = data;
203+
}
203204
},
204205
cacheGet: function(params, functionName){
206+
if(qm.api.justUseBuiltInHttpCache){ // Redundant and produces unexpected results
207+
return null;
208+
}
205209
if(params && params.refresh){
206210
return null;
207211
}

0 commit comments

Comments
 (0)