File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ import { CoreWait } from '@singletons/wait';
4545import { CorePromiseUtils } from '@singletons/promise-utils' ;
4646import { CoreObject } from '@singletons/object' ;
4747import { CoreArray } from '@singletons/array' ;
48+ import { CoreBrowser } from '@singletons/browser' ;
4849
4950/**
5051 * Class that represents a site (combination of site + user) where the user has authenticated but the site hasn't been validated
@@ -863,7 +864,7 @@ export class CoreAuthenticatedSite extends CoreUnauthenticatedSite {
863864 preSets : CoreSiteWSPreSets ,
864865 wsPreSets : CoreWSPreSets ,
865866 ) : Promise < T > {
866- if ( preSets . skipQueue || ! this . wsAvailable ( 'tool_mobile_call_external_functions' ) ) {
867+ if ( preSets . skipQueue || ! this . wsAvailable ( 'tool_mobile_call_external_functions' ) || ! this . shouldGroupWSRequests ( ) ) {
867868 return CoreWS . call < T > ( method , data , wsPreSets ) ;
868869 }
869870
@@ -1042,6 +1043,15 @@ export class CoreAuthenticatedSite extends CoreUnauthenticatedSite {
10421043 }
10431044 }
10441045
1046+ /**
1047+ * Check if WS requests should be grouped.
1048+ *
1049+ * @returns Whether WS requests should be grouped.
1050+ */
1051+ protected shouldGroupWSRequests ( ) : boolean {
1052+ return ! CoreUtils . isFalseOrZero ( CoreBrowser . getDevelopmentSetting ( 'GroupWSRequests' ) ?? true ) ;
1053+ }
1054+
10451055 /**
10461056 * Check if a WS is available in this site.
10471057 *
You can’t perform that action at this time.
0 commit comments