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