• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/model/command.php
  • Класс: BitrixImModelCommandTable
  • Вызов: CommandTable::clearCommandCache
static function clearCommandCache(BitrixMainORMEvent $event): MainEntityEventResult
{
	$id = (int)$event->getParameter('primary')['ID'];
	$botId = self::getBotId($id);

	if (isset($botId))
	{
		Command::cleanCache($botId);
	}

	return new MainEntityEventResult();
}