diff options
Diffstat (limited to 'pingora-cache/src/lib.rs')
-rw-r--r-- | pingora-cache/src/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pingora-cache/src/lib.rs b/pingora-cache/src/lib.rs index 2aa2f7c..d484bfa 100644 --- a/pingora-cache/src/lib.rs +++ b/pingora-cache/src/lib.rs @@ -976,7 +976,8 @@ impl HttpCache { /// - return false if the current meta doesn't match the variance, need to cache_lookup() again pub fn cache_vary_lookup(&mut self, variance: HashBinary, meta: &CacheMeta) -> bool { match self.phase { - CachePhase::CacheKey => { + // Stale is allowed here because stale-> cache_lock -> lookup again + CachePhase::CacheKey | CachePhase::Stale => { let inner = self.inner_mut(); // make sure that all variances found are fresher than this asset // this is because when purging all the variance, only the primary slot is deleted |