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