SharePoint throttling by cache refresh

%3CLINGO-SUB%20id%3D%22lingo-sub-1149395%22%20slang%3D%22en-US%22%3ESharePoint%20throttling%20by%20cache%20refresh%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1149395%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20All%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20SharePoint%20Online%2C%20I%20am%20calling%20api%26nbsp%3B%20%22%2F_api%2Fweb%2FHubSiteDataAsStream%22%20to%20get%20the%20hub%20site%20navigation%20details%20in%20custom%20SPFX%20app.%20But%20because%20of%20cache%2C%20this%20api%20wont%20get%20recent%20data.%20If%20I%20send%20parameter%20'true'%20(%2F_api%2Fweb%2FHubSiteDataAsStream(true))%2C%20then%20it%20retrieves%20fresh%20set%20of%20data.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere%20my%20question%20is%2C%20we%20are%20using%20this%20SPFX%20app%20in%20around%2020000%20sites%2C%20and%20app%20loads%20when%20any%20site%20opened%20by%20user.%20So%20if%20I%20refresh%20the%20cache%20by%20sending%20parameter%20'true'%20every%20time%20site%20loads%2C%20will%20it%20cause%26nbsp%3Bthrottling%3F%20so%20will%20it%20effects%20performance%20issues%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3EMahesh%20Manja%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1152863%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20throttling%20by%20cache%20refresh%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1152863%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F544102%22%20target%3D%22_blank%22%3E%40maheshmanja%3C%2FA%3E%26nbsp%3BI've%20done%20similar%2C%20I%20haven't%20had%20any%20issues%20at%20scale%20with%20calling%20this%20for%20my%20custom%20navigation%20I%20built.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1154451%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20throttling%20by%20cache%20refresh%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1154451%22%20slang%3D%22en-US%22%3EThanks%20a%20lot%20Cameron%20for%20your%20reply.%3CBR%20%2F%3EYou%20mean%20by%20sending%20'true'%20parameter%20to%20api%20(which%20refresh%20the%20cache)%20wont%20make%20any%20impact%20on%20the%20site%20performance%3F%20So%20throttling%20will%20be%20negligible%20even%20api%20call%20happens%20with%20param%20in%20thousands%20of%20the%20site%20at%20same%20time%3F%3C%2FLINGO-BODY%3E
New Contributor

Hi All,

 

In SharePoint Online, I am calling api  "/_api/web/HubSiteDataAsStream" to get the hub site navigation details in custom SPFX app. But because of cache, this api wont get recent data. If I send parameter 'true' (/_api/web/HubSiteDataAsStream(true)), then it retrieves fresh set of data. 

 

Here my question is, we are using this SPFX app in around 20000 sites, and app loads when any site opened by user. So if I refresh the cache by sending parameter 'true' every time site loads, will it cause throttling? so will it effects performance issues?

 

Thanks,

Mahesh Manja

 

2 Replies

@maheshmanja I've done similar, I haven't had any issues at scale with calling this for my custom navigation I built.

Thanks a lot Cameron for your reply.
You mean by sending 'true' parameter to api (which refresh the cache) wont make any impact on the site performance? So throttling will be negligible even api call happens with param in thousands of the site at same time?