Skip to main content

needs_refresh

Function needs_refresh 

Source
pub fn needs_refresh(p: &Product, c: Option<&Cache>, now: u64) -> bool
Expand description

True when there is no usable cache, it is older than the TTL, it is about another binary, or its timestamp is in the future (clock moved back).