MCPcopy Create free account
hub / github.com/go-task/task / ResetCache

Method ResetCache

compiler.go:199–204  ·  view source on GitHub ↗

ResetCache clear the dynamic variables cache

()

Source from the content-addressed store, hash-verified

197
198// ResetCache clear the dynamic variables cache
199func (c *Compiler) ResetCache() {
200 c.muDynamicCache.Lock()
201 defer c.muDynamicCache.Unlock()
202
203 c.dynamicCache = nil
204}
205
206func (c *Compiler) getSpecialVars(t *ast.Task, call *Call) (map[string]string, error) {
207 // Use filepath.ToSlash for all paths to ensure consistent forward slashes

Callers 1

watchTasksMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected