diff --git a/composer.json b/composer.json index cf428ff..5782593 100644 --- a/composer.json +++ b/composer.json @@ -3,7 +3,7 @@ "description": "Cache library", "type": "library", "license": "MIT", - "version": "1.0.0", + "version": "1.0.1", "autoload": { "psr-4": { "Rsgrinko\\Cache\\": "src/" diff --git a/src/Cache.php b/src/Cache.php index 1012a8b..6d55ea6 100644 --- a/src/Cache.php +++ b/src/Cache.php @@ -254,9 +254,6 @@ */ public static function getAge(string $name): ?int { - if (self::check($name)) { - return (time() - @filectime(self::$cacheDir . md5($name) . '.tmp')); - } - return null; + return (time() - @filectime(self::$cacheDir . md5($name) . '.tmp')); } }