Compare commits

...
1 Commits
Author SHA1 Message Date
rsgrinko 27ea5034bf fix delete method 2022-11-03 20:38:47 +03:00
2 changed files with 2 additions and 5 deletions

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'));
}
}