70-489 · Question #28
You have a custom Web Part that retrieves data across multiple task lists. Pages that contain the Web Part load slowly. You need to ensure that pages load as quickly as possible. Which methods…
The correct answer is A. CrossListQueryCache.GetSiteData(SPContext.Current.Site, siteUrl) C. Cache.Get(siteUrl). A: GetSiteData method (SPSite, String) Gets the cache data from the specified site and from the specified webUrl. C: Cache.Get Method Retrieves the specified item from the Cache object.
Question
You have a custom Web Part that retrieves data across multiple task lists. Pages that contain the Web Part load slowly. You need to ensure that pages load as quickly as possible. Which methods should you use? (Each correct answer presents a complete solution. Choose all that apply.)
Options
- ACrossListQueryCache.GetSiteData(SPContext.Current.Site, siteUrl)
- BCross ListQneryCache.GetSiteData(SPContext.Current.Site)
- CCache.Get(siteUrl)
- DSPList.GetItems(spQuery)
How the community answered
(32 responses)- A78% (25)
- B6% (2)
- D16% (5)
Explanation
A: GetSiteData method (SPSite, String) Gets the cache data from the specified site and from the specified webUrl. C: Cache.Get Method Retrieves the specified item from the Cache object.
Topics
Community Discussion
No community discussion yet for this question.