• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/cache_files.php
  • Класс: CPHPCacheFiles
  • Вызов: CPHPCacheFiles::_unlink
static function _unlink($fileName)
{
	//This checks for Zend Server CE in order to supress warnings
	if(function_exists('accelerator_reset'))
	{
		@chmod($fileName, BX_FILE_PERMISSIONS);
		if(@unlink($fileName))
			return true;
	}
	else
	{
		if(file_exists($fileName))
		{
			@chmod($fileName, BX_FILE_PERMISSIONS);
			if(unlink($fileName))
				return true;
		}
	}
	return false;
}