mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
Be able to delete watch_optimizer_cache_state.json when data folder is outside of Kibana source folder (#32446) (#34959)
This commit is contained in:
parent
316fe42ec5
commit
0e88c26efa
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ export class WatchCache {
|
|||
// start by deleting the state file to lower the
|
||||
// amount of time that another process might be able to
|
||||
// successfully read it once we decide to delete it
|
||||
await del(this.statePath);
|
||||
await del(this.statePath, { force: true });
|
||||
|
||||
// delete everything in optimize/.cache directory
|
||||
await del(await globby([normalizePosixPath(this.cachePath)], { dot: true }));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue