WithDocumentDependencies(Config<IEnumerable<IDocument>>) Method
Specifies additional documents that a document cache entry should depend on.
Namespace
Statiq.Core
Containing Type
CacheDocuments

Syntax

public CacheDocuments WithDocumentDependencies(Config<IEnumerable<IDocument>> documentDependencies)

Remarks

This should return the same documents on each execution. The aggregate hash of all configuration result documents is combined with the hash of the input document(s) to determine if the cache entry is a hit or a miss.

Parameters

Name Type Description
documentDependencies Config<IEnumerable<IDocument>> Returns additional document dependencies for each input document.

Return Value

Type Description
CacheDocuments The current module instance.