Open Bug 1817891 Opened 2 years ago Updated 2 years ago

Add in-tree documentation that explains the Cache API disk layout and the "morgue" directory misnomer

Categories

(Core :: Storage: Cache API, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: asuth, Unassigned)

References

Details

The Cache API storage using the directory name "morgue" leads to continual (legitimate!) confusion about the contents of the directory. The storage is in fact active; Response body files only exist on disk as long as there is an entry in the Cache database OR there are live refcounts for the Response that had been fetched from the database. At no time does the Cache API implementation intentionally retain files that are not reachable.

Note that crashes do create a situation where response bodies that were only being held alive by refcounts will need to be cleaned up, but this is handled at next initialization. (And in particular, this is something the documentation should cover.)

See Also: → 1817892
See Also: → 1816274
You need to log in before you can comment on or make changes to this bug.