Метод preloadUsers

Расположение

Исходный файл метода в Bitrix Framework

Путь к исходному файлу строки 26–29
~/bitrix/modulesim/lib/V2/Integration/AiAssistant/Tools/Support/ImToolFormatter.php

Исходный код

PHP
public

Сигнатура метода

public function preloadUsers(array $userIds): void

Возвращает: void

Описание

Warms the user cache for a batch of ids with a single query, so that subsequent per-user lookups in formatMessage()/formatMember() (User::getInstance) read from the hot cache instead of issuing one SQL per user. Delegates to {@see UserFactory::preloadUsers()}, which owns the field-set and caches through the same path as the per-user read, so formatting stays bit-identical.

Параметры

1
Имя Тип По умолчанию Флаги
$userIds array -
-