anfragment / zen

Simple, free and efficient ad-blocker and privacy guard for Windows, macOS and Linux
https://zenprivacy.net
MIT License
2.26k stars 53 forks source link

Improve certificate cache eviction logic #25

Closed anfragment closed 9 months ago

anfragment commented 10 months ago

Currently, generated TLS certificates get evicted 2 minutes after their generation. Due to the usual access patterns this naive heuristic is bad for both frequently and infrequently accessed items. An LRU cache should perform much better.