mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
Fix cache
This commit is contained in:
parent
60656845b0
commit
2c2c2a878a
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue