Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
27ea5034bf |
No files matched your search
+1
-1
@@ -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
@@ -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'));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user