Simple displaying list items

Sunbox DataView since 1.5 version introduce a new feature: caching of list data in the client local storage.

How it works

Sunbox DataView uses HTML5 WebStorage feature, and client cache will works on all browsers from the list below:
  • IE 8+
  • FireFox 3.5+
  • Safari 4+
  • Chrome 4+
  • Opera 10.50+
  1. At first Sunbox DataView on the server side gets the last modified date of the data source (lists, libraries etc.) and pass this time stamp to client side.
  2. Then client side determine the source of the data: SharePoint lists.asmx web service or browser local cache.
  3. If cache exists and not expired: web part loads data from them, otherwise she loads from web service and store loaded data to local cache

The schema of this process shown below:


This system allows to reduce server load, because the clients caching data on they browsers and not query the data in next times (if data not modifed).

Enabling client cache

Client cache for single data source enabled by default. You can change this option in the "Advanced" tab of data source options:


Also should be noted that if you data source queries data from another site collection - client cache will not work. Because in this case web part could not to get info about this source on the server side.

Last edited Mar 14, 2012 at 9:57 AM by Bukharin, version 3


No comments yet.