src/wcmf/lib/io/impl/FileCache.php
private function isExpired($createTs, $lifetime) {
    if ($lifetime === null) {
      return false;
    }
    $expireDate = (new \DateTime())->setTimeStamp($createTs);
    if (intval($lifetime)) {
      $expireDate = $expireDate->modify('+'.$lifetime.' seconds');
    }
    return $expireDate < new \DateTime();
  }
private function isExpired($createTs, $lifetime) {
    if ($lifetime === null) {
      return false;
    }
    $expireDate = (new \DateTime())->setTimeStamp($createTs);
    if (intval($lifetime)) {
      $expireDate = $expireDate->modify('+'.$lifetime.' seconds');
    }
    return $expireDate < new \DateTime();
  }
private function isExpired ( $ createTs , $ lifetime ) { if ( $ lifetime === null ) { return false ; } $ expireDate = ( new \ DateTime ( ) ) -> setTimeStamp ( $ createTs ) ; if ( intval ( $ lifetime ) ) { $ expireDate = $ expireDate -> modify ( '+' . $ lifetime . ' seconds' ) ; } return $ expireDate < new \ DateTime ( ) ; }
Check if an entry with the given creation timestamp and lifetime is expired
@param $createTs The creation timestamp
@param $lifetime The lifetime in seconds
@return Boolean
Check if an entry with the given creation timestamp and lifetime is expired