Sitefinity utilizes the Enterprise Library Caching Application Block
for caching some of its data. In order to obtain an instance of the ICacheManager
interface you have to call the GetCacheManager(string instanceName)
method of Telerik.Sitefinity.Services.SystemManager
class. This method will create and return a new manager or retrieve an existent one. Beware not to use one of the internally used cache managers (Global, Configuration, etc. See Telerik.Sitefinity.Services.CacheManagerInstance enumeration). If you want to use a simple dictionary object as a singleton then you can use the CreateStaticCache()
method of the same class.
If you intend to use the caching for storing data items, then we have to note that OpenAccess
has a second level cache for its persistent items, that is used to cache data items and not retrieve them from the database. Also there will be a problem if you access the same data items by different OpenAccess scopes. By default this second level cache is active for single server environments and inactive when in load balancing mode to prevent serving stale data.
the Telerik team
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking
system and vote to affect the priority of the items