On Wed, Dec 7, 2011 at 3:36 PM, Michal Novotny <[email protected]> wrote:
> On 12/08/2011 12:22 AM, Jason Duell wrote:
>>
>> 2) When a user clicks "clear recent history" we blow away the whole
>> disk cache (we don't have a way to remove items by time added).
>> Michal tells me we don't use nsDeleteDir for this (which would be
>> async): instead we synchronously evict the entire cache :(   I'm not
>
>
> We use nsDeleteDir if we can. I.e. when no cache entry is in use.
>
>
>
>> sure if that's fixable (the issue is what to do with loads that are
>> using the cache as the user hits the button IIRC), but assuming it's
>> not in a short time frame, that might be enough to merit keeping the
>> size under a gig.
>
>
> It must be fixable. I'll have a look at possibilities of forcibly closing of
> all active entries to be able to use nsDeleteDir.

It seems like you can just call Doom() on all active entries?

-christian
_______________________________________________
dev-tech-network mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-network

Reply via email to