• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/data/cacheenginefiles.php
  • Класс: BitrixMainDataCacheEngineFiles
  • Вызов: CacheEngineFiles::unlink
static function unlink($fileName)
{
	if (isset(self::$lockHandles[$fileName]) && self::$lockHandles[$fileName])
	{
		fclose(self::$lockHandles[$fileName]);
		unset(self::$lockHandles[$fileName]);
	}

	if (file_exists($fileName))
	{
		@chmod($fileName, BX_FILE_PERMISSIONS);
		if (@unlink($fileName))
			return true;
	}

	return false;
}