WithoutSourceMapping(bool) Method
Specifies whether source mapping of inputs to outputs should be used (the default is to use source mapping).
Namespace
Statiq.Core
Containing Type
CacheDocuments

Syntax

public CacheDocuments WithoutSourceMapping(bool withoutSourceMapping = true)

Remarks

By default output documents are cached based on mapping their document source to the same source from input documents. This allows for fine-grained cache invalidation. Setting this to true will treat all input documents as a single unit and will invalidate the entire cache if any of them change.

Parameters

Name Type Description
withoutSourceMapping bool true if source mapping should be disabled and a change in any input document should result in invalidating the entire cache.

Return Value

Type Description
CacheDocuments The current module instance.