Skip to content

Commit e67b56f

Browse files
committed
A few updates around result cache and --debug
1 parent 50eff68 commit e67b56f

3 files changed

Lines changed: 9 additions & 1 deletion

File tree

website/src/config-reference.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,10 @@ parameters:
419419
maximumNumberOfProcesses: 1
420420
```
421421

422+
Parallel processing is also disabled when running with [`--debug`](/user-guide/command-line-usage#--debug). [^notWantToRunWithDebug]
423+
424+
[^notWantToRunWithDebug]: Although you don't want to always run PHPStan with this option.
425+
422426
Miscellaneous parameters
423427
-----------------
424428

website/src/user-guide/command-line-usage.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ Instead of the progress bar, it outputs lines with each analysed file before its
6363

6464
Additionally, it stops on the first internal error and prints a stack trace.
6565

66+
This option also disables the [result cache](/user-guide/result-cache) and [parallel processing](/config-reference#parallel-processing) for debugging purposes.
67+
6668
### `--ansi, --no-ansi`
6769

6870
Overrides the autodetection of whether colors should be used in the output and how nice the progress bar should be.

website/src/user-guide/result-cache.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The result cache is saved at `%tmpDir%/result-cache.php`. [Learn more about `tmp
1515
Result cache contents
1616
--------------
1717

18-
* The last time a full analysis of the project was performed. The full analysis is performed at least every 24 hours.
18+
* The last time a full analysis of the project was performed. The full analysis is performed at least every 7 days.
1919
* Analysis variables used to invalidate a stale cache. If any of these values change, full analysis is performed again.
2020
* PHPStan version
2121
* PHP version
@@ -32,3 +32,5 @@ Clearing the result cache
3232
---------------
3333

3434
To clear the current state of the result cache, for example if you're developing [custom extensions](/developing-extensions/extension-types) and the result cache is getting stale too often, you can run the `clear-result-cache` command. [Learn more »](/user-guide/command-line-usage#clearing-the-result-cache)
35+
36+
Result cache also gets disabled when running with [`--debug`](/user-guide/command-line-usage#--debug).

0 commit comments

Comments
 (0)