InvalidateDocumentsWhere(Config<bool>) Method
Specifies whether a particular document should be invalidated.
Namespace
Statiq.Core
Containing Type
CacheDocuments

Syntax

public CacheDocuments InvalidateDocumentsWhere(Config<bool> invalidateDocuments)

Remarks

Because documents are tracked in the cache by Source, if multiple input documents have the same source and one of them is invalidated, all of the documents with that source will be considered cache misses.

Parameters

Name Type Description
invalidateDocuments Config<bool> A config delegate that should return true if the current cached document should be invalidated, false otherwise.

Return Value

Type Description
CacheDocuments The current module instance.