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:11:04 -03:00
parent 1ebf234cd3
commit e56976d67e
2 changed files with 4 additions and 2 deletions

View file

@ -608,6 +608,9 @@ abstract class ObjectYPT implements ObjectInterface
} }
$cachefile = self::getCacheFileName($name, true, $addSubDirs, $ignoreMetadata); $cachefile = self::getCacheFileName($name, true, $addSubDirs, $ignoreMetadata);
if(isCommandLineInterface()){
echo 'setCache '.json_encode($name, $addSubDirs, $ignoreMetadata);
}
self::logTime($start, __LINE__, $name); self::logTime($start, __LINE__, $name);
make_path($cachefile); make_path($cachefile);
//_error_log("YPTObject::setCache log error [{$name}] $cachefile filemtime = ".filemtime($cachefile)); //_error_log("YPTObject::setCache log error [{$name}] $cachefile filemtime = ".filemtime($cachefile));

View file

@ -37,8 +37,7 @@ try {
$cacheSuffix = "getVideosPaths_" . ($includeS3 ? 1 : 0); $cacheSuffix = "getVideosPaths_" . ($includeS3 ? 1 : 0);
$videoCache = new VideoCacheHandler($filename, 0, true); $videoCache = new VideoCacheHandler($filename, 0, true);
$response = $videoCache->setCache($videos); $response = $videoCache->setCache($videos);
var_dump($cache_setCacheToSaveAtTheEnd);
Cache::saveCache();
$global['forceGetCache'] = 1; $global['forceGetCache'] = 1;
$videoCache = new VideoCacheHandler($filename, 0, true); $videoCache = new VideoCacheHandler($filename, 0, true);
$cache = $videoCache->getCache($cacheSuffix, 0); $cache = $videoCache->getCache($cacheSuffix, 0);