1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00
This commit is contained in:
Daniel Neto 2024-08-28 23:21:07 -03:00
parent 3efef9895f
commit 813d26c9ba
3 changed files with 3 additions and 3 deletions

View file

@ -1168,7 +1168,7 @@ abstract class CacheHandler
$this->setSuffix($suffix); $this->setSuffix($suffix);
$name = $this->getCacheName($this->suffix); $name = $this->getCacheName($this->suffix);
if(isCommandLineInterface()){ 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 (isset($_getCache[$name])) {
if ($logInfo) { if ($logInfo) {

View file

@ -35,7 +35,7 @@ try {
$videos = Video::_getVideosPaths($filename, $includeS3); $videos = Video::_getVideosPaths($filename, $includeS3);
$cacheSuffix = "getVideosPaths_" . ($includeS3 ? 1 : 0); $cacheSuffix = "getVideosPaths_" . ($includeS3 ? 1 : 0);
$videoCache = new VideoCacheHandler($filename); $videoCache = new VideoCacheHandler($filename, 0, true);
$videoCache->setSuffix($cacheSuffix); $videoCache->setSuffix($cacheSuffix);
$response = $videoCache->setCache($videos); $response = $videoCache->setCache($videos);

View file

@ -4842,7 +4842,7 @@ if (!class_exists('Video')) {
{ {
$cacheSuffix = "getVideosPaths_" . ($includeS3 ? 1 : 0); $cacheSuffix = "getVideosPaths_" . ($includeS3 ? 1 : 0);
$videoCache = new VideoCacheHandler($filename); $videoCache = new VideoCacheHandler($filename, 0, true);
$cache = $videoCache->getCache($cacheSuffix, 0); $cache = $videoCache->getCache($cacheSuffix, 0);
$tmpCacheFile = sys_get_temp_dir() . "/getVideosPaths_{$filename}_" . ($includeS3 ? 1 : 0) . ".tmp"; $tmpCacheFile = sys_get_temp_dir() . "/getVideosPaths_{$filename}_" . ($includeS3 ? 1 : 0) . ".tmp";