File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -194,14 +194,18 @@ var qm = {
194
194
}
195
195
return qmApiClient ;
196
196
} ,
197
+ justUseBuiltInHttpCache : true , // Redundant and produces unexpected results
197
198
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 ] = { } ; }
201
200
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
+ }
203
204
} ,
204
205
cacheGet : function ( params , functionName ) {
206
+ if ( qm . api . justUseBuiltInHttpCache ) { // Redundant and produces unexpected results
207
+ return null ;
208
+ }
205
209
if ( params && params . refresh ) {
206
210
return null ;
207
211
}
You can’t perform that action at this time.
0 commit comments