[Request] Flush only oldest blocks on cache resize
[Request] Flush only oldest blocks on cache resize
It would be a really nice change to Primocache if upon resizing the cache, that it not completely dump it's contents (i.e. reset). Instead, how about dumping the least used blocks that can no longer fit, and allow the rest to stay in the newly sized cache. It would save quite a bit of effort in re-populating the cache.
Re: [Request] Flush only oldest blocks on cache resize
Actually, when we designed the cache resizing, we did plan not to reset all cache contents. However because of the development schedule, we didn't have enough time. So we used a lazy and simple way that is just to reset all cache. I think we can improve this in future. Thank you for your suggestion.