Closed Bug 456547 Opened 18 years ago Closed 10 years ago

Only create the offline cache when really needed

Categories

(Core :: Networking: Cache, defect)

defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: alfredkayser, Assigned: alfredkayser)

Details

Currently nsCacheService, calls CreateOfflineCache also when cleaning/evicting caches. CreateOfflineCache on his turn always create nsOfflineCacheDevice, which in his turn creates the directory, the sqlite database, all the tables and prepares all SQL statements, even if that cache is really not used. So, I propose to make so that during eviction, the offline cache is only opened (and thus created) when it already exists. This will improve startup time (when the offline cache is not used), and creates less clutter on disk.
Assignee: nobody → alfredkayser
Note, it is normally not created at startup, but during eviction (or about:cache)
offline cache going away
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.