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.

Caches don't have limits/expirations

See original GitHub issue

We’re using the storage to cache the release count and the users’ full name. These caches don’t expire and they just pile up. There should be a mechanism to either regularly purge the cache or to make them expire.

A thought was to use good ol’ cookies in the background.js (yes they work in there) since the expiration is handled natively and new items push out the old items once the limit is reached — just like you’d expect from a cache.

However cookies are limited to 4KB (instead of 5MB), which maybe fits around 100 user names and 40 release counts.

Ideas?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
sindresorhuscommented, Jul 18, 2017

I would just go the easy route and purge the cache every x days (100?).

0reactions
sindresorhuscommented, Dec 8, 2017

Make it every 30 days and I’m 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mark Davis reminds everyone there's no salary cap for coaches
Coaches don't want to let their deals expire and be a lame duck in their ... There have been 11 coaches appointed to...
Read more >
Rules On Hiring NFL Coaches - Windy City Gridiron
Now if either of these two have their contracts expire after the 2009 season they'd essentially be free to sign with any team...
Read more >
Tips for Handling Baseball Time Limits - Referee.com
Coaches aren't always up front about time limits, particularly at lower levels where they want to get the team more playing time. If...
Read more >
The Five Pillars of Gregg Popovich - Bloomberg
Since Gregg Popovich took over as head coach of the NBA's San Antonio Spurs 21 years ago, the rest of the league's teams...
Read more >
Frequently Asked Questions - International Coaching Federation
If you have a question about credentialing, accreditation, research, ... I let my International Coaching Federation (ICF) Membership or Credential expire?
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