Open Bug 769796 Opened 12 years ago Updated 3 years ago

Remove fetchCount and lastFetched information from all cache entries

Categories

(Core :: Networking: Cache, defect, P5)

defect

Tracking

()

People

(Reporter: briansmith, Unassigned)

Details

(Whiteboard: [necko-backlog])

Since we update these properties every time a cache entry is read, we end up having to write the cache entry's metadata back out to disk. Since this information is low-value (AFAICT), and expensive to update on disk, we should just remove it.
I was hoping to use this information for better eviction politic and weighting of potential 304 response.  BTW, aren't these metadata already used for something like this?
If we still need this for something like eviction, we can reduce the impact comes with updates by writing back lazily.
(In reply to Thinker Li [:sinker] from comment #2)
> If we still need this for something like eviction, we can reduce the impact
> comes with updates by writing back lazily.

I have no problem with that.
Whiteboard: [necko-backlog]
Bulk change to priority: https://bugzilla.mozilla.org/show_bug.cgi?id=1399258
Priority: -- → P1
Bulk change to priority: https://bugzilla.mozilla.org/show_bug.cgi?id=1399258
Priority: P1 → P3

Bulk-downgrade of unassigned, untouched DOM/Storage bug's priority.

If you have reason to believe, this is wrong, please write a comment and ni :jstutte.

Severity: normal → S4
Priority: P3 → P5
You need to log in before you can comment on or make changes to this bug.