1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00

Fix cache

This commit is contained in:
DanielnetoDotCom 2021-03-12 20:40:02 -03:00
parent 60656845b0
commit 2c2c2a878a

View file

@ -405,6 +405,7 @@ abstract class ObjectYPT implements ObjectInterface
} elseif (file_exists($cachefile)) {
self::deleteCache($name);
}
return null;
}
public static function deleteCache($name)
@ -473,7 +474,7 @@ abstract class ObjectYPT implements ObjectInterface
$ignoreLocationDirectoryName = (strpos($name, DIRECTORY_SEPARATOR)!==false);
$tmpDir = self::getCacheDir($ignoreLocationDirectoryName);
$uniqueHash = md5(__FILE__);
return $tmpDir . DIRECTORY_SEPARATOR . $name . $uniqueHash;
return $tmpDir . $name . $uniqueHash;
}
public static function deleteCacheFromPattern($name)