1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00
This commit is contained in:
Daniel Neto 2024-04-17 13:51:39 -03:00
parent 7695fd0fee
commit a843d34bcb
2 changed files with 8 additions and 3 deletions

View file

@ -1112,7 +1112,8 @@ abstract class CacheHandler {
$timeLog = __FILE__ . "::deleteCache ";
TimeLogStart($timeLog);
$prefix = $this->getCacheSubdir();
if (class_exists('CachesInDB')) {
if (class_exists('CachesInDB')) {
_error_log("deleteCache CachesInDB");
CacheDB::deleteCacheStartingWith($prefix);
}
TimeLogEnd($timeLog, __LINE__);
@ -1121,6 +1122,7 @@ abstract class CacheHandler {
unset($_SESSION['user']['sessionCache']);
TimeLogEnd($timeLog, __LINE__);
if($clearFirstPageCache){
_error_log("deleteCache clearFirstPageCache");
clearCache(true);
}
TimeLogEnd($timeLog, __LINE__);