In the Salesforce Summer '22 Release Notes, there is a small section on the new scope
annotation for @AuroEnabled
Apex methods:
Under what conditions would you not want to adopt this annotation? When is enabling global
scope not the appropriate thing to do?
Example from the dreamhouse-lwc sample application:
public with sharing class PropertyController {
@AuraEnabled(cacheable=true scope='global')
public static PagedResult getPagedPropertyList(String searchKey...) {
// snip...
}
}