• Модуль: translate
  • Путь к файлу: ~/bitrix/modules/translate/lib/controller/index/purge.php
  • Класс: BitrixTranslateControllerIndexPurge
  • Вызов: Purge::run
public function run($path = '')
{
	if (!empty($path))
	{
		$filter = new TranslateFilter([
			'path' => $path
		]);
		(new TranslateIndexPathLangCollection())->purge($filter);
		(new TranslateIndexPathIndexCollection())->purge($filter);
	}
	else
	{
		(new TranslateIndexPathLangCollection())->purge();
		(new TranslateIndexPathIndexCollection())->purge();
	}

	return ['STATUS' => TranslateControllerSTATUS_COMPLETED];
}