anfragment / zen

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

Improve certificate cache eviction logic #25

Closed anfragment closed 11 months ago

anfragment commented 11 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.