Provide users with a way to customize how changes to files are detected for caching purposes
See original GitHub issueThe version of ESLint you are using.
5.12.1
The problem you want to solve.
We are currently unable to realize the benefits of eslint’s result caching within our CI environment due to a combination of limitations related to file attribute preservation with common CI tooling and the current stat
-based change detection implementation within eslint.
Your take on the correct solution to problem.
Add a --cache-strategy
(working title) CLI option to enable customization of the useChecksum
argument to file-entry-cache#create
.
(see #11487)
Are you willing to submit a pull request to implement this change?
(see #11487 😉)
Issue Analytics
- State:
- Created 5 years ago
- Reactions:8
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Turn on Cached Exchange Mode - Microsoft Support
Click File > Account Settings > Account Settings. Account Settings in the Backstage view. Click the Exchange or Microsoft 365, and then click...
Read more >What is Caching and How it Works - AWS
Caching allows you to efficiently reuse previously retrieved or computed data. How does Caching work? The data in a cache is generally stored...
Read more >What is Cache (Computing)? - TechTarget
This approach is called read cache. The browser can read data from the browser cache faster than it can reread the files from...
Read more >Caching - web.dev
Cache storage is a powerful tool. It makes your apps less dependent on network conditions. With good use of caches you can make...
Read more >Edit service caching properties in ArcGIS Server Manager ...
You can choose a preset for your cache's tiling scheme, or provide a custom file. You can further modify the tiling scheme to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@nzakas Thanks for the insight. I will review that policy.
To clarify, the request here is less about using a different checksum than it is about supporting the use of a checksum at all (instead of the file’s
mtime
which is the default) … currently, the underlying dep supports using an md5 checksum (theuseChecksum
argument tofileEntryCache#create
) for detecting changes, but eslint does not use that feature and does not provide an API to enable its use. So the request here is to provide that API (while leaving the current / default implementation unchanged).Unfortunately, it looks like there wasn’t enough interest from the team or community to implement this change. While we wish we’d be able to accommodate everyone’s requests, we do need to prioritize. We’ve found that issues failing to reach accepted status after 21 days tend to never be accepted, and as such, we close those issues. This doesn’t mean the idea isn’t interesting or useful, just that it’s not something the team can commit to.
Thanks for contributing to ESLint and we appreciate your understanding.