Click or drag to resize
IPageCacheBuilderTPageTypeDependencies Method
Configures the cache dependencies for the cached data.

Namespace: Kentico.Content.Web.Mvc
Assembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 13.0.131
Syntax
C#
IPageCacheBuilder<TPageType> Dependencies(
	Action<IEnumerable<TPageType>, IPageCacheDependencyBuilder<TPageType>> configureDependenciesAction,
	bool includeDefault = true
)

Parameters

configureDependenciesAction
Type: SystemActionIEnumerableTPageType, IPageCacheDependencyBuilderTPageType
Action to configure the cache dependencies.
includeDefault (Optional)
Type: SystemBoolean
Indicates if the system default cache dependencies should be used.

Return Value

Type: IPageCacheBuilderTPageType
Remarks
If the dependencies are not configured the automatic dependencies (on pages and page types) are configured based on retrieved data. If multiple dependency configuration actions provided the value of the last one is used to configure the dependencies.
See Also