1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00
This commit is contained in:
Daniel Neto 2024-04-17 11:54:53 -03:00
parent add0e6920f
commit b5949907cb
2 changed files with 4 additions and 2 deletions

View file

@ -646,8 +646,8 @@ abstract class ObjectYPT implements ObjectInterface
if (!empty($_GET['lifetime'])) {
$lifetime = intval($_GET['lifetime']);
}
if (empty($ignoreSessionCache)) {
if (empty($ignoreSessionCache) && empty($global['ignoreSessionCache'])) {
$session = self::getSessionCache($name, $lifetime);
if (!empty($session)) {
self::setLastUsedCacheMode("Session cache \$_SESSION['user']['sessionCache'][$name]");

View file

@ -2261,7 +2261,9 @@ Click <a href=\"{link}\">here</a> to join our live.";
//_error_log("Live::_getStats cached result 1 {$_REQUEST['name']} ");
return $_getStats[$live_servers_id][$_REQUEST['name']];
}
$global['ignoreSessionCache'] = 1;
$result = $cacheHandler->getCache($cacheName, 90);
$global['ignoreSessionCache'] = 0;
if (!empty($result)) {
//_error_log("Live::_getStats cached result 2 {$_REQUEST['name']} {$cacheName}");
return _json_decode($result);