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