private function isExpired(string $viewPath) : bool
    {
        $lastModified = DateTime::createFromFormat('U', filemtime($viewPath));

        return $lastModified < new DateTime('-' . $this->lifetime . ' seconds');
    }