1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-06 03:50:04 +02:00
This commit is contained in:
Daniel Neto 2023-05-08 15:17:10 -03:00
parent 20d9b703bf
commit 9e78a62dac

View file

@ -589,6 +589,7 @@ abstract class ObjectYPT implements ObjectInterface
if (empty($ignoreSessionCache)) {
$session = self::getSessionCache($name, $lifetime);
if (!empty($session)) {
self::setLastUsedCacheMode("Session cache \$_SESSION['user']['sessionCache'][$name]");
$_getCache[$name] = $session;
//_error_log('getCache: '.__LINE__);
return $session;
@ -598,6 +599,7 @@ abstract class ObjectYPT implements ObjectInterface
if (class_exists('Cache')) {
$cache = Cache::getCache($name, $lifetime, $ignoreMetadata);
if (!empty($cache)) {
self::setLastUsedCacheMode("Cache::getCache($name, $lifetime, $ignoreMetadata)");
return $cache;
}
}