mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
Improving the cache
This commit is contained in:
parent
9b03c29401
commit
907ac4485a
1 changed files with 1 additions and 0 deletions
|
@ -387,6 +387,7 @@ abstract class ObjectYPT implements ObjectInterface {
|
|||
$name = self::cleanCacheName($name);
|
||||
_session_start();
|
||||
$_SESSION['user']['sessionCache'][$name]['value'] = json_encode($value);
|
||||
$_SESSION['user']['sessionCache'][$name]['time'] = time();
|
||||
if(empty($_SESSION['user']['sessionCache']['time'])){
|
||||
$_SESSION['user']['sessionCache']['time'] = time();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue