Skip to content

Commit

Permalink
Docs: Clarify cache file deletion (fixes #4943) (#6712)
Browse files Browse the repository at this point in the history
  • Loading branch information
nzakas committed Jul 23, 2016
1 parent 26c85dd commit 71ae64c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/user-guide/command-line-interface.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,9 @@ Examples:

#### `--cache`

Store the info about processed files in order to only operate on the changed ones.
Store the info about processed files in order to only operate on the changed ones. The cache is stored in `.eslintcache` by default. Enabling this option can dramatically improve ESLint's running time by ensuring that only changed files are linted.

**Note:** If you run ESLint with `--cache` and then run ESLint without `--cache`, the `.eslintcache` file will be deleted. This is necessary because the results of the lint might change and make `.eslintcache` invalid. If you want to control when the cache file is deleted, then use `--cache-location` to specify an alternate location for the cache file.

#### `--cache-file`

Expand Down

0 comments on commit 71ae64c

Please sign in to comment.