WithPipelineDependencies(string[]) Method
Sets the pipelines that the cache depends on. If any document in a dependent pipeline changes, the entire cache is invalidated.
Namespace
Statiq.Core
Containing Type
CacheDocuments

Syntax

public CacheDocuments WithPipelineDependencies(params string[] pipelineDependencies)

Remarks

The default behavior is no dependent pipelines unless the cache module is used in the process phase in which case documents from all the pipeline dependencies of the current pipeline will be used. Set pipelineDependencies to an empty array to override this behavior and not use any dependent pipelines in the process phase or null to reset to the default behavior. If the cache is used in the transform phase and the child modules use documents from any other pipelines, those pipelines should be specified.

Parameters

Name Type Description
pipelineDependencies string[] The pipelines the cache depends on.

Return Value

Type Description
CacheDocuments The current module instance.