The page will show you how to control the length Sueetie List View Controls are cached in server memory.
The Default State of List View Caching
Sueetie List Views Controls display application data from anywhere on a Sueetie Community. You can learn more about
List View Controls here. Each list is cached independent of the rest and are by default cached for 5 minutes. Here is a screenshot of List Views in action on the Sueetie.com home page.

Setting List Caching
Because Sueetie is a website project, you can make changes directly to the List View control codebehind .cs files as shown below for the BlogListPost control.

Sueetie list view controls are designed so you can set the cache on the .ASPX page as well. The example above is called from the home page, /default.aspx. The cache duration can be set as shown below.

The SueetieCacheDuration Enumerator
There are two additional management options for Sueetie List View Controls: MaxDuration and NoCache, -1 and 0 respectively. You can specify these options in the List View control .cs codebehind as shown in this example.

Clearing the Cache
The cache for all Sueetie List View controls can be flushed at any time by using the application's action class ClearCache() method, most of which use the Sueetie ContentQuery object to determine the applicationID, groupID, userID and IsRestricted properties of the cache key. This is to support independent caching of multiple lists and list types across multiple applications. For instance, if both a Recent Blog Post list and a Blog list of posts authored by a specific user were both used, the current ContentQuery object would flush the cache of only the specified blog post list.
Here's an example of clearing a blog post list cache.
Top