githooks cache:clear¶
Delete cache files generated by QA tools.
Synopsis¶
Arguments¶
Accepts job names, flow names (resolved to their jobs), or a mix. Without arguments, clears caches for all configured jobs.
Default cache locations¶
| Tool | Default cache |
|---|---|
| PHPStan | {sys_get_temp_dir}/phpstan/ (or tmpDir from .neon config) |
| PHPMD | .phpmd.cache (or cache-file from job config) |
| PHPCS | .phpcs.cache |
| Psalm | .psalm/cache/ |
| PHPUnit | .phpunit.result.cache |
Examples¶
githooks cache:clear # Clear all job caches
githooks cache:clear phpstan_src phpmd_src # Clear specific jobs
githooks cache:clear qa # Clear all jobs in flow 'qa'
githooks cache:clear qa phpmd_src # Mix flow and job names
githooks cache:clear --config=qa/githooks.php # Use custom config
Unknown names produce a warning; valid names are still processed.