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:
parent
add1d4083a
commit
930b51e496
6 changed files with 58 additions and 35 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue