Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: CLI option to clear the results cache #2993

Closed
jrfnl opened this issue Jun 21, 2020 · 3 comments
Closed

Feature request: CLI option to clear the results cache #2993

jrfnl opened this issue Jun 21, 2020 · 3 comments

Comments

@jrfnl
Copy link
Contributor

jrfnl commented Jun 21, 2020

While testing #2992, I really missed an option to clear the cache, but allow for it to be set.

The --no-cache option only tells PHPCS to not use the cache for that particular run.

It doesn't clear an existing cache file, or in case of the temp directory being used: clear all existing cache files, as those can accumulate to be quite a large number of files quickly.

Please consider this a feature request for a CLI argument to clear the cache(s) to be added.

@frankgraave
Copy link

Would also love to see this option. Also, I can't find where the cache files are being stored. Is there a command to retrieve the cache directory?

@jrfnl
Copy link
Contributor Author

jrfnl commented Feb 25, 2022

I can't find where the cache files are being stored. Is there a command to retrieve the cache directory?

@frankgraave The cache is being stored in the system temp directory, unless you set a specific cache directory either via the command line --cache[=<cacheFile> or set the same in your custom ruleset.

@jrfnl
Copy link
Contributor Author

jrfnl commented Dec 2, 2023

Closing as replaced by PHPCSStandards/PHP_CodeSniffer#20

@jrfnl jrfnl closed this as not planned Won't fix, can't repro, duplicate, stale Dec 2, 2023
@github-project-automation github-project-automation bot moved this to Ready for Release in PHPCS v3 Development Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Ready for Release
Development

No branches or pull requests

3 participants