File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments