question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Provide users with a way to customize how changes to files are detected for caching purposes

See original GitHub issue

The 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:closed
  • Created 5 years ago
  • Reactions:8
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
montmanucommented, Mar 14, 2019

@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 (the useChecksum argument to fileEntryCache#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).

0reactions
eslint-deprecated[bot]commented, Apr 14, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found