Closed Bug 687232 Opened 13 years ago Closed 13 years ago

Emptying the cache takes a very long time

Categories

(Core :: Networking: Cache, defect)

6 Branch
x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 670911

People

(Reporter: bugzilla, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 5.1; rv:6.0.2) Gecko/20100101 Firefox/6.0.2
Build ID: 20110902133214

Steps to reproduce:

Empty the cache from the Firefox settings dialogue.


Actual results:

It stood there for a very long time. Removing 50 MiB took almost a minute, the original 1 GiB setting took me something like an hour (don't remember anymore but it was unacceptable, so I reduced the cache size). Scratching my hard disk the whole time.


Expected results:

No delay or at maximum some seconds. I mean, how hard can it be to remove a cache database file from disk?
So you cache size is currently set at 50 Mb and used to be at 1 Gb?
Component: General → Networking: Cache
Product: Firefox → Core
QA Contact: general → networking.cache
1 GiB is the default setting for new profiles (or upgrades from an earlier Firefox version). Since it took virtually forever to clear that when I first did it, I set it down to 50 MiB. Now it still takes a long time, but at least not forever anymore.
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
Bug 670911 doesn't sound like it's mine. But as I don't fully understand it, I'd wait for an official Firefox release that includes it to verify the issue. When can I expect that? Is it included in Firefox 6 already (which would make the resolving wrong immediately) or will it come with Firefox 7 or 8?

To clarify things btw, the Firefox UI does freeze while it clears the cache and there is massive disk activity all the time. It doesn't look like some kind of dead lock or timeout, it really does work. It just takes much time. This wasn't the case with earlier Firefox versions (< 4?).
Deleting files (whether manually, or automatically after a crash) used to be very slow, because of a file permission problem on windows (that's the I/O you see) in Firefox 4. It wasn't the deletion of the files itself (which is done in the background), but the rename of the Cache directory to Cache.trash took a very long time.

The fix is currently in Aurora, so it will appear in Firefox 8.
You need to log in before you can comment on or make changes to this bug.