Partager via


Working with Commerce Foundation Caches

Effective caching is important for getting the maximum performance and scalability from your e-commerce Web applications. To prevent repeated calls to SQL Server, the Commerce Server Core systems cache the results of various methods in the form of datasets. The system uses the System.Web.Caching.Cache object to cache the various datasets. Each dataset is inserted in the cache with the CacheItemPriority.Normal property value. The dataset remains in the cache for a configurable period of time.

Refreshing the Cache

At times an explicit refresh of the Commerce Server caches is required. Using Microsoft Multi-Channel Commerce Foundation, you can perform a refresh using by the CommerceCache commerce entity. You can specify how frequently the system refreshes the caches by using the settings of the caches element in the Web.config file. The retryInterval attribute of this element specifies the number of seconds the cache manager will wait before it tries to refill the cache if an error is encountered. The refreshInterval attribute specifies the number of seconds until the cache expires and the loader is invoked to refill the cache. 

In This Section

See Also

Other Resources

Commerce Foundation CommerceCache

Commerce Foundation CommerceCache Update

Commerce Foundation OperationCacheDictionary

Understanding Core Systems Caching