tanguilp / http_cache_store_disk

Disk store for http_cache
https://hexdocs.pm/http_cache_store_disk
Apache License 2.0
5 stars 1 forks source link

Implement SSD disk write protection #1

Closed tanguilp closed 1 year ago

tanguilp commented 1 year ago

He caches HTTP requec He complies with HTTP spec But most importantly, he SSD-protec

The idea is to cache first in memory and write to disk upon second access when a SSD disk is used, as explained here: https://blog.cloudflare.com/why-we-started-putting-unpopular-assets-in-memory/

This would be a configuration option, as it's not possible to detec the type of disk used (SSD or not).

tanguilp commented 1 year ago

Implemented in pro version.