mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-06-18 07:43:37 +00:00
Write cache entries to a temporary file and rename them over the final path only after the entry has been fully flushed. This keeps previously mapped cache bodies tied to their original inode instead of exposing them to truncation when the same cache key is replaced. Clean up only the temporary file for incomplete writers so a failed replacement does not remove the still-valid existing cache entry. Add coverage that replaces an entry while an old body mapping remains live and verifies that it still exposes the original bytes. |
||
|---|---|---|
| .. | ||
| CacheEntry.cpp | ||
| CacheEntry.h | ||
| CacheIndex.cpp | ||
| CacheIndex.h | ||
| CacheMode.h | ||
| CacheRequest.h | ||
| DiskCache.cpp | ||
| DiskCache.h | ||
| DiskCacheSettings.cpp | ||
| DiskCacheSettings.h | ||
| MemoryCache.cpp | ||
| MemoryCache.h | ||
| Utilities.cpp | ||
| Utilities.h | ||
| Version.h | ||