mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
Update
This commit is contained in:
parent
3efef9895f
commit
813d26c9ba
3 changed files with 3 additions and 3 deletions
|
@ -1168,7 +1168,7 @@ abstract class CacheHandler
|
|||
$this->setSuffix($suffix);
|
||||
$name = $this->getCacheName($this->suffix);
|
||||
if(isCommandLineInterface()){
|
||||
echo "public function getCache($suffix) ??{$this->suffix}?? name=".$name.PHP_EOL;
|
||||
echo "public function getCache($suffix) name=".$name.PHP_EOL;
|
||||
}
|
||||
if (isset($_getCache[$name])) {
|
||||
if ($logInfo) {
|
||||
|
|
|
@ -35,7 +35,7 @@ try {
|
|||
$videos = Video::_getVideosPaths($filename, $includeS3);
|
||||
|
||||
$cacheSuffix = "getVideosPaths_" . ($includeS3 ? 1 : 0);
|
||||
$videoCache = new VideoCacheHandler($filename);
|
||||
$videoCache = new VideoCacheHandler($filename, 0, true);
|
||||
$videoCache->setSuffix($cacheSuffix);
|
||||
$response = $videoCache->setCache($videos);
|
||||
|
||||
|
|
|
@ -4842,7 +4842,7 @@ if (!class_exists('Video')) {
|
|||
{
|
||||
|
||||
$cacheSuffix = "getVideosPaths_" . ($includeS3 ? 1 : 0);
|
||||
$videoCache = new VideoCacheHandler($filename);
|
||||
$videoCache = new VideoCacheHandler($filename, 0, true);
|
||||
$cache = $videoCache->getCache($cacheSuffix, 0);
|
||||
|
||||
$tmpCacheFile = sys_get_temp_dir() . "/getVideosPaths_{$filename}_" . ($includeS3 ? 1 : 0) . ".tmp";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue