Closed Bug 300035 Opened 19 years ago Closed 19 years ago

clearing cache should remove directory, not delete files

Categories

(Core :: Networking: Cache, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 231300

People

(Reporter: ratman, Assigned: darin.moz)

Details

(Keywords: perf)

clearing the disk cache, especially if set to the 50mb default, takes forever,
at least on windows machines.  this is particularly concerning after a crash,
because moz will freeze up while it slowly clears the cache after first starting
up after a crash (different bug altogether).

i believe that this is because moz deletes the cache file by file, using the
equivalent of the old dos "del"/"erase" command.  a much simpler and faster way
of clearing the cache would be to remove the cache *directory* altogether, and
then recreate the cache directory, rather than trying to delete the files
contained there.  this is what i usually do after a (non-moz related) crash to
prevent moz from freezing up when starting up again.  the delay experienced when
clearing the cache can be "replicated" by dropping into dos and clearing the
cache with the "del *.*" command.

okay, this isn't a very well-worded bug description, i apologize.  hopefully it
makes sense.
the only way to remove directories is by deleting all the files contained in
them and then the directory itself.

that said, the experienced delay was fixed in bug 231300

*** This bug has been marked as a duplicate of 231300 ***
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
> this is what i usually do after a (non-moz related) crash

how do you do that, though?
You need to log in before you can comment on or make changes to this bug.