Closed Bug 379590 Opened 17 years ago Closed 17 years ago

The offline cache uses same ID as disk cache which confuses 'about:cache'

Categories

(Core :: Networking: Cache, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: alfredkayser, Unassigned)

References

()

Details

The 'offline cache' is really a 'disk cache' stored in another location used to cache items marked to be 'offline' available.
However the instance of the 'disk cache device' used for that purpose uses the same ID as the normal disk cache:

http://lxr.mozilla.org/seamonkey/source/netwerk/cache/src/nsDiskCacheDevice.cpp
 82 static const char DISK_CACHE_DEVICE_ID[] = { "disk" };

This confuses 'about:cache', showing two disk caches, and when clicking the second, it shows the content of the first...

Solution:
In the nsDiskCacheDevice constructor also pass the ID instead of staticly allocated.
Depends on: 367447
This was fixed with the addition of the sql offline cache in bug 370195
Status: NEW → RESOLVED
Closed: 17 years ago
Depends on: 370195
Resolution: --- → FIXED
Depends on: 727579
No longer depends on: 727579
You need to log in before you can comment on or make changes to this bug.