Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

Caching Webpart data

  Asked By: Akeem Strong         Date: Aug 10, 2005      Category: Sharepoint      Views: 328
 

Has anyone experience with caching certain webpart
contents? I've created a webpart for vertical
navigation of SPS, WSS and mySite combined in one
treeview but performance is approx. 800 ms and would
like to reduce that to approx. 250 ms. Most of the
time goes to reading the tree and checking the user
rights for it only shows those pages/sites the user
has access to.

Tagged:      

 

2 Answers Found

 
Answer #1       Answered By: Agustin Miranda          Answered On: Aug 10, 2005       

I do this all the time. All you need is PartCacheRead() and PartCacheWrite(). For something like this I’d likely just store away the visual control and re-add it from the cache after the first run through.

 
Answer #2       Answered By: Arron Middleton          Answered On: Aug 10, 2005       

I concur. Note however that the navigation will be cached. Changes at the
source will not be reflected until you flush the cache. Rather than
resetting IIS or the AppPool, I would probably include an administrative
option on the Web Part itself to clear the cache.

 
Didn't find what you were looking for? Find more on Caching Webpart data Or get search suggestion and latest updates.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].