/** * Check is the lifetime is stil valid * @param string $id * @return bool */ private function isValidLife($id) { $filename = $this->getFileName($id); $content = parent::_doFetch($id); return time() - filemtime($filename) < $content['lt']; }