[Request] Flush only oldest blocks on cache resize

FAQ, getting help, user experience about PrimoCache
Post Reply
User avatar
Jaga
Contributor
Contributor
Posts: 692
Joined: Sat Jan 25, 2014 1:11 am

[Request] Flush only oldest blocks on cache resize

Post by Jaga »

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.
User avatar
Support
Support Team
Support Team
Posts: 3628
Joined: Sun Dec 21, 2008 2:42 am

Re: [Request] Flush only oldest blocks on cache resize

Post by Support »

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.
User avatar
Jaga
Contributor
Contributor
Posts: 692
Joined: Sat Jan 25, 2014 1:11 am

Re: [Request] Flush only oldest blocks on cache resize

Post by Jaga »

:thumbup: :thumbup:
TomB
Level 5
Level 5
Posts: 44
Joined: Wed Jul 29, 2020 11:15 pm

Re: [Request] Flush only oldest blocks on cache resize

Post by TomB »

+1
Post Reply