Re: Lower max size of HTTP cache?

Michal Novotny <[email protected]>
Newsgroups gmane.comp.mozilla.devel.netlib
Message-ID <[email protected]>
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.


Michal
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.