Web Part Caching – A simple approach
Read OriginalThis article provides a straightforward approach to caching data in SharePoint Web Parts. It explains the importance of caching for reducing server load when dealing with redundant data. The author presents a code sample that uses HttpRuntime.Cache to store and retrieve SPList item counts, avoiding repeated iteration of lists. The tutorial includes a complete C# code example for a custom Web Part that checks for cached data before fetching from SharePoint, with a 10-minute cache duration. It also mentions alternative caching options like WSS 3.0 built-in functionality, emphasizing the versatility of the HttpRuntime approach for any ASP.NET application.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser
Top of the Week
No top articles yet