CodeExplorer isFreshEnough example
return $this->
pass($request,
$catch);
} if (null ===
$entry) { $this->
record($request, 'miss'
);
return $this->
fetch($request,
$catch);
} if (!
$this->
isFreshEnough($request,
$entry)) { $this->
record($request, 'stale'
);
return $this->
validate($request,
$entry,
$catch);
} if ($entry->headers->
hasCacheControlDirective('no-cache'
)) { return $this->
validate($request,
$entry,
$catch);
} $this->
record($request, 'fresh'
);
return $this->
pass($request,
$catch);
} if (null ===
$entry) { $this->
record($request, 'miss'
);
return $this->
fetch($request,
$catch);
} if (!
$this->
isFreshEnough($request,
$entry)) { $this->
record($request, 'stale'
);
return $this->
validate($request,
$entry,
$catch);
} if ($entry->headers->
hasCacheControlDirective('no-cache'
)) { return $this->
validate($request,
$entry,
$catch);
} $this->
record($request, 'fresh'
);