mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
Update
This commit is contained in:
parent
add0e6920f
commit
b5949907cb
2 changed files with 4 additions and 2 deletions
|
@ -647,7 +647,7 @@ abstract class ObjectYPT implements ObjectInterface
|
||||||
$lifetime = intval($_GET['lifetime']);
|
$lifetime = intval($_GET['lifetime']);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty($ignoreSessionCache)) {
|
if (empty($ignoreSessionCache) && empty($global['ignoreSessionCache'])) {
|
||||||
$session = self::getSessionCache($name, $lifetime);
|
$session = self::getSessionCache($name, $lifetime);
|
||||||
if (!empty($session)) {
|
if (!empty($session)) {
|
||||||
self::setLastUsedCacheMode("Session cache \$_SESSION['user']['sessionCache'][$name]");
|
self::setLastUsedCacheMode("Session cache \$_SESSION['user']['sessionCache'][$name]");
|
||||||
|
|
|
@ -2261,7 +2261,9 @@ Click <a href=\"{link}\">here</a> to join our live.";
|
||||||
//_error_log("Live::_getStats cached result 1 {$_REQUEST['name']} ");
|
//_error_log("Live::_getStats cached result 1 {$_REQUEST['name']} ");
|
||||||
return $_getStats[$live_servers_id][$_REQUEST['name']];
|
return $_getStats[$live_servers_id][$_REQUEST['name']];
|
||||||
}
|
}
|
||||||
|
$global['ignoreSessionCache'] = 1;
|
||||||
$result = $cacheHandler->getCache($cacheName, 90);
|
$result = $cacheHandler->getCache($cacheName, 90);
|
||||||
|
$global['ignoreSessionCache'] = 0;
|
||||||
if (!empty($result)) {
|
if (!empty($result)) {
|
||||||
//_error_log("Live::_getStats cached result 2 {$_REQUEST['name']} {$cacheName}");
|
//_error_log("Live::_getStats cached result 2 {$_REQUEST['name']} {$cacheName}");
|
||||||
return _json_decode($result);
|
return _json_decode($result);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue