1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-04 02:09:22 +02:00

Making sure clear the first page cache when it is requested

This commit is contained in:
Daniel 2021-10-22 12:19:26 -03:00
parent add1d4083a
commit 930b51e496
6 changed files with 58 additions and 35 deletions

View file

@ -374,6 +374,7 @@ abstract class ObjectYPT implements ObjectInterface {
$getCachesProcessed = array();
}
$cachefile = self::getCacheFileName($name);
//var_dump($cachefile);//exit;
self::setLastUsedCacheFile($cachefile);
//_error_log('getCache: cachefile '.$cachefile);
if (!empty($_getCache[$name])) {
@ -680,6 +681,7 @@ abstract class ObjectYPT implements ObjectInterface {
public static function deleteAllSessionCache() {
_session_start();
unset($_SESSION['user']['sessionCache']);
return empty($_SESSION['user']['sessionCache']);
}
public function tableExists() {