SwoffSwoff

Tag Invalidation

Full schema for swoff.config.json features.tagInvalidation — every field, its type, default, and description.

features.tagInvalidation

Object-only feature (boolean shorthand not supported).

FieldTypeDefaultDescription
enabledbooleanfalseEnable the tag-based cache invalidation system (generates fetch/core, cache/tags, cache/invalidate)
debounceMsnumber0Debounce window (ms) for coalescing rapid invalidations. When > 0, repeated INVALIDATE_TAG messages within the window are batched and processed once, reducing redundant cache scans.
skipPrefixesstring[]["api","v1","v2","v3","rest","graphql","gql"]URL path prefixes to skip during tag generation
patternsobject{}Custom glob patterns for tag generation. Keys are URL patterns (/api/:id), values are tag template arrays (["{id}"])
singularizationobject{}Custom plural→singular mapping (e.g. {"categories": "category"}). Default: strips trailing s.
cascadingRecord<string, string[]>{}Cascading tag dependencies. {"todos": ["categories"]} — invalidating todos also invalidates categories

On this page