InvalidateCache forces reload on next call.
()
| 116 | |
| 117 | // InvalidateCache forces reload on next call. |
| 118 | func (bl *BootstrapLoader) InvalidateCache() { |
| 119 | bl.mu.Lock() |
| 120 | defer bl.mu.Unlock() |
| 121 | bl.cache = make(map[string]cachedFile) |
| 122 | } |
| 123 | |
| 124 | func (bl *BootstrapLoader) loadWithCache(path string) (string, bool) { |
| 125 | info, err := os.Stat(path) |
no test coverage detected