Click or drag to resize
CachedSection Class
Cached section context handler.
Inheritance Hierarchy

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 9.0.0
Syntax
C#
public abstract class CachedSection : Trackable<CachedSection>

The CachedSection type exposes the following members.

Constructors
  NameDescription
Protected methodCachedSection
Constructor
Top
Fields
  NameDescription
Protected fieldmDataWasSet
Flag indicating whether the data property was set. The data property must be set if progressive caching is enabled
Protected fieldmException
Exception that occurred when loading data
Protected fieldmLoadData
True if the data should be loaded by the code.
Protected fieldmLock
Object for the synchronization.
Protected fieldmLockAcquired
Flag whether the lock was acquired for this cached section
Protected fieldmRemoved
Flag set when the item is removed from the cache
Protected fieldmSettings
Cache settings
Top
Properties
  NameDescription
Public propertyBoolCondition
Cache condition.
Public propertyCached
If true, the data is used from the cache if available / cached
Public propertyCacheDependency
Cache dependency.
Public propertyCacheItemName
Cache item name used for the caching.
Public propertyCacheMinutes
Cache minutes.
Public propertyException
Exception that occurred within loading of the data
Public propertyLoadData
If true, the external code should load the data. Using this property to control does not support distribution of unhandled exceptions in case of progressive caching.
Public propertySettings
Cache settings
Top
Methods
  NameDescription
Public methodCallOnDispose
Adds the given action to the list of actions called when the handler object is disposed
(Inherited from DisposableObject.)
Public methodDispose
Make sure the objects get disposed
(Inherited from DisposableObject.)
Public methodLock
Locks the event on the given lock object. The context stays locked until the handler is disposed.
(Inherited from DisposableObject.)
Protected methodLogDataError
Logs the error when data was not set
Public methodRemove
Removes the cache item
Public methodUsing
Adds the given object to the list of the allocated objects to dispose
(Inherited from DisposableObject.)
Top
See Also