• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/classes/general/calendar.php
  • Класс: CCalendar
  • Вызов: CCalendar::ClearCache
static function ClearCache($arPath = [])
{
	global $CACHE_MANAGER;

	$CACHE_MANAGER->ClearByTag("CALENDAR_EVENT_LIST");

	if (empty($arPath))
	{
		$arPath = [
			'access_tasks',
			'type_list',
			'section_list',
			'attendees_list',
			'event_list',
		];
	}
	elseif (!is_array($arPath))
	{
		$arPath = [$arPath];
	}

	if (!empty($arPath))
	{
		$cache = new CPHPCache;
		foreach($arPath as $path)
		{
			if ($path)
			{
				$cache->CleanDir(self::CachePath() . $path);
			}
		}
	}
}