Tobias Zimmergren 10/7/2008

Web Part Caching – A simple approach

Read Original

This 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.

Web Part Caching – A simple approach

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