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.

Add versioning to cache so cache can be refreshed when node/value changes

See original GitHub issue

Is your feature request related to a problem? Please describe. In the upgrade to zwave-js 7.0.0, I learned that I had to clear my cache so that zwave-js could rebuild it with the v7 schema since we no longer reinterview every node on startup.

Describe the solution you’d like It would be great if there was something like a cache version, where if you install a zwave-js version that uses a different cache version from the existing cache, the cache gets wiped and recreated. If the version isn’t specified in the cache (for caches created before this change), assume version 0, and make zwave-js 7.0.0 use version 1.

Describe alternatives you’ve considered Manual rebuild is the only option I am aware of currently

Additional context Add any other context or screenshots about the feature request here. If you want to propose an API, share your thoughts how it could be used (syntax).

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
AlCalzonecommented, Mar 19, 2021

That’s because it was migrated before #2107 😃 You’ll still get protocolVersion: 4 for some newer devices.

0reactions
raman325commented, Mar 19, 2021

OK fair enough. Just an FYI, protocolVersion got migrated but it reflected the old version (in my case it was 4 which is invalid for the enum) until I wiped the cache and started fresh.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to force browsers to reload cached CSS and JS files?
This is a good solution. I tried the query string type of versioning with all major browsers and they DO cache the file,...
Read more >
Automatically refresh caches when build dependencies are ...
This process will check your dependencies for changes, and if there is a change, it will delete the existing cache and create a...
Read more >
How to Use Versioning to Update Your Cached WordPress ...
Versioning, also known as 'cache busting', solves this problem by automatically forcing updates to the cache if a file has been changed. It's...
Read more >
Refresh caches when dependencies are updated
Updates to dependencies do not cause the cache to be refreshed which means that builds can sometimes use old versions of dependencies, leading...
Read more >
How to invalidate the client cache with release of a new version?
Hi Javascript-Experts, After releasing a new Version, I am facing the issue that (JS) files in the Browser Cache do not update immediately....
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