mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-06 03:50:04 +02:00
udpate
This commit is contained in:
parent
20d9b703bf
commit
9e78a62dac
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue