Open psmartt opened 8 years ago
From what I can see, there is no automatic, periodic, randomised or sampled call to flushExpired()
.
However, two clean up strategies exist:
It may be useful to add something like if (Math.random() < 0.2) { requestIdleCallback( lscache.flushExpired ); }
to your page to periodically trigger a clean up on 1/5 page views.
+1