fix delete method

This commit is contained in:
rsgrinko committed 2022-11-03 20:38:47 +03:00
1 parent 9876a7584d
commit 27ea5034bf
2 files changed
+2 -5

No files matched your search

+1 -1
View File
@@ -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/"
+1 -4
View File
@@ -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'));
}
}