Code Context $filesToDelete = count($files) - $this->_config['rotate'];
while ($filesToDelete > 0) {
unlink(array_shift($files));
$filename = 'product_update_log.log'
$filepath = '/var/www/html/app/tmp/logs/product_update_log.log'
$result = true
$files = array(
(int) 0 => '/var/www/html/app/tmp/logs/product_update_log.log.1754176954',
(int) 1 => '/var/www/html/app/tmp/logs/product_update_log.log.1754177092',
(int) 2 => '/var/www/html/app/tmp/logs/product_update_log.log.1754177403',
(int) 3 => '/var/www/html/app/tmp/logs/product_update_log.log.1754177747',
(int) 4 => '/var/www/html/app/tmp/logs/product_update_log.log.1754178723',
(int) 5 => '/var/www/html/app/tmp/logs/product_update_log.log.1754179158',
(int) 6 => '/var/www/html/app/tmp/logs/product_update_log.log.1754179412',
(int) 7 => '/var/www/html/app/tmp/logs/product_update_log.log.1754179462',
(int) 8 => '/var/www/html/app/tmp/logs/product_update_log.log.1754179557',
(int) 9 => '/var/www/html/app/tmp/logs/product_update_log.log.1754179728'
)
$filesToDelete = (int) 1
unlink - [internal], line ??
FileLog::_rotateFile() - CORE/Cake/Log/Engine/FileLog.php, line 212
FileLog::write() - CORE/Cake/Log/Engine/FileLog.php, line 137
CakeLog::write() - CORE/Cake/Log/CakeLog.php, line 445
CakeObject::log() - CORE/Cake/Core/CakeObject.php, line 162
ProdottiComponent::myLog() - APP/Controller/Component/ProdottiComponent.php, line 4250
ProdottiComponent::remouveGhost() - APP/Controller/Component/ProdottiComponent.php, line 7343
ProdottiComponent::getAvailability() - APP/Controller/Component/ProdottiComponent.php, line 7711
ProdottiComponent::getProdotti() - APP/Controller/Component/ProdottiComponent.php, line 359
ProdottiComponent::getProdottiProssimeUscite() - APP/Controller/Component/ProdottiComponent.php, line 1694
ProdottiController::info() - APP/Controller/ProdottiController.php, line 266
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 499
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 110