This commit is contained in:
Mateusz Gruszczyński committed 2026-10-25 10:15:26 +01:00
1 parent b3dfd570b5
commit a4042d6439
16 files changed
+362 -55

No files matched your search

+4
View File
@@ -52,6 +52,7 @@ impl Cache {
transformed,
skip_compression,
remaining_ttl,
entry_ttl,
body_bytes,
) = {
let entry = store.entries.get_mut(&storage_key)?;
@@ -67,6 +68,7 @@ impl Cache {
entry.transformed,
entry.skip_compression,
entry.ttl.saturating_sub(age),
entry.ttl,
entry.body.len(),
)
};
@@ -97,6 +99,7 @@ impl Cache {
hits,
transformed,
remaining_ttl,
cache_status_ttl: cache_status_ttl(entry_ttl, age),
resident_age_seconds,
stale: state.stale(),
background_revalidate: state.background_revalidate(),
@@ -301,6 +304,7 @@ impl Cache {
hits,
transformed: entry.transformed,
remaining_ttl: entry.ttl.saturating_sub(age),
cache_status_ttl: cache_status_ttl(entry.ttl, age),
resident_age_seconds,
stale: state.stale(),
background_revalidate: state.background_revalidate(),