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-04-09 10:24:32 -03:00
parent 58ed4a160d
commit 3d2530848f

View file

@ -511,7 +511,7 @@ abstract class ObjectYPT implements ObjectInterface {
public static function getCacheFileName($name) {
global $global;
$tmpDir = self::getCacheDir($name);
$uniqueHash = md5(__FILE__ . $global['salt']); // add salt for security reasons
$uniqueHash = md5($name . $global['salt']); // add salt for security reasons
return $tmpDir . $uniqueHash . '.cache';
}