Re: Lower max size of HTTP cache?

Christian Biesinger <[email protected]>
Newsgroups gmane.comp.mozilla.devel.netlib
Message-ID <CACpOFMu948gXeLRV=CgW9G3RGc25b7_aVeY1arpf=_3O6uKeeg@mail.gmail.com>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.